Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -6,7 +6,7 @@ ENV PYTHONUNBUFFERED=1
|
|
6 |
|
7 |
WORKDIR /code
|
8 |
|
9 |
-
|
10 |
|
11 |
# Set up a new user named "user" with user ID 1000
|
12 |
RUN useradd -m -u 1000 user
|
@@ -23,7 +23,7 @@ ENV HOME=/home/user \
|
|
23 |
GRADIO_THEME=huggingface \
|
24 |
SYSTEM=spaces
|
25 |
|
26 |
-
|
27 |
|
28 |
# Set the working directory to the user's home directory
|
29 |
WORKDIR $HOME/app
|
|
|
6 |
|
7 |
WORKDIR /code
|
8 |
|
9 |
+
COPY ./requirements.txt /code/requirements.txt
|
10 |
|
11 |
# Set up a new user named "user" with user ID 1000
|
12 |
RUN useradd -m -u 1000 user
|
|
|
23 |
GRADIO_THEME=huggingface \
|
24 |
SYSTEM=spaces
|
25 |
|
26 |
+
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
27 |
|
28 |
# Set the working directory to the user's home directory
|
29 |
WORKDIR $HOME/app
|