radames commited on
Commit
58fb7a9
·
1 Parent(s): 96161d3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -4,7 +4,6 @@ WORKDIR /code
4
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
7
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  # Set up a new user named "user" with user ID 1000
10
  RUN useradd -m -u 1000 user
@@ -20,11 +19,13 @@ ENV HOME=/home/user \
20
  GRADIO_SERVER_NAME=0.0.0.0 \
21
  GRADIO_THEME=huggingface \
22
  SYSTEM=spaces
23
-
 
 
24
  # Set the working directory to the user's home directory
25
  WORKDIR $HOME/app
26
 
27
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
28
  COPY --chown=user . $HOME/app
29
 
30
- CMD ["python", "app.py"]
 
4
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
 
7
 
8
  # Set up a new user named "user" with user ID 1000
9
  RUN useradd -m -u 1000 user
 
19
  GRADIO_SERVER_NAME=0.0.0.0 \
20
  GRADIO_THEME=huggingface \
21
  SYSTEM=spaces
22
+
23
+ RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
24
+
25
  # Set the working directory to the user's home directory
26
  WORKDIR $HOME/app
27
 
28
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
29
  COPY --chown=user . $HOME/app
30
 
31
+ CMD ["python3", "app.py"]