Spaces:
Runtime error
Runtime error
Commit
•
4a6c482
1
Parent(s):
2b88b8e
specify user uid = 1000 based on dev mode docs: https://huggingface.co/dev-mode-explorers
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -34,7 +34,8 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
|
|
34 |
WORKDIR /app
|
35 |
|
36 |
# Create a non-root user and switch to it
|
37 |
-
RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
|
|
|
38 |
&& chown -R user:user /app
|
39 |
RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
|
40 |
USER user
|
@@ -84,7 +85,7 @@ RUN --mount=target=requirements.txt,source=requirements.txt \
|
|
84 |
pip install --no-cache-dir --upgrade -r requirements.txt
|
85 |
|
86 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
87 |
-
COPY --chown=user . $HOME/app
|
88 |
|
89 |
RUN chmod +x start_server.sh
|
90 |
|
|
|
34 |
WORKDIR /app
|
35 |
|
36 |
# Create a non-root user and switch to it
|
37 |
+
#RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
|
38 |
+
RUN adduser --uid 1000 --disabled-password --gecos '' --shell /bin/bash user \
|
39 |
&& chown -R user:user /app
|
40 |
RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
|
41 |
USER user
|
|
|
85 |
pip install --no-cache-dir --upgrade -r requirements.txt
|
86 |
|
87 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
88 |
+
COPY --link --chown=user . $HOME/app
|
89 |
|
90 |
RUN chmod +x start_server.sh
|
91 |
|