moriire commited on
Commit
25337ed
1 Parent(s): 7aeb587

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -40,10 +40,6 @@ ENV TF_ENABLE_ONEDNN_OPTS=0
40
  USER user
41
  # Set home to the user's home directory
42
 
43
- RUN python3 -m pip install --upgrade pip
44
- # Install requirements.txt
45
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
46
-
47
  ENV HOME=/home/user \
48
  PATH=/home/user/.local/bin:$PATH/app
49
 
@@ -54,7 +50,9 @@ RUN export MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`
54
  RUN chmod -R 755 $HOME/app
55
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
56
  COPY --chown=user . $HOME/app
57
-
 
 
58
  #CMD ["python3", "-m", "app"]
59
  # Start the FastAPI app on port 7860, the default port expected by Spaces
60
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
40
  USER user
41
  # Set home to the user's home directory
42
 
 
 
 
 
43
  ENV HOME=/home/user \
44
  PATH=/home/user/.local/bin:$PATH/app
45
 
 
50
  RUN chmod -R 755 $HOME/app
51
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
52
  COPY --chown=user . $HOME/app
53
+ RUN python3 -m pip install --upgrade pip
54
+ # Install requirements.txt
55
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
56
  #CMD ["python3", "-m", "app"]
57
  # Start the FastAPI app on port 7860, the default port expected by Spaces
58
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]