Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -10,7 +10,7 @@ COPY ./requirements.txt /code/requirements.txt
|
|
10 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
|
12 |
# Set up a new user named "user" with user ID 1000
|
13 |
-
RUN useradd -m -u
|
14 |
|
15 |
# Switch to the "user" user
|
16 |
USER user
|
@@ -25,4 +25,4 @@ WORKDIR $HOME/app
|
|
25 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
26 |
COPY --chown=user . $HOME/app
|
27 |
|
28 |
-
CMD ["python", "
|
|
|
10 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
|
12 |
# Set up a new user named "user" with user ID 1000
|
13 |
+
RUN useradd -m -u 10000 user
|
14 |
|
15 |
# Switch to the "user" user
|
16 |
USER user
|
|
|
25 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
26 |
COPY --chown=user . $HOME/app
|
27 |
|
28 |
+
CMD ["python", "app.py"]
|