kadabengaran commited on
Commit
df44993
1 Parent(s): c352a91

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -40,9 +40,9 @@ ENV HOME=/home/user \
40
  GRADIO_THEME=huggingface
41
 
42
  # Install Python dependencies
43
- RUN pip3 install --no-cache-dir --upgrade pip && \
44
- pip3 install --no-cache-dir --upgrade -r /code/requirements.txt && \
45
- pip3 install --no-cache-dir uvicorn
46
 
47
 
48
  # Set the application directory for the user
@@ -54,5 +54,5 @@ COPY --chown=user . $HOME/app
54
  # Expose the Uvicorn FastAPI port
55
  EXPOSE 7860
56
 
57
- # Run the application using the same command as local setup
58
  CMD ["python3.8", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]
 
40
  GRADIO_THEME=huggingface
41
 
42
  # Install Python dependencies
43
+ RUN python3.8 -m pip install --no-cache-dir --upgrade pip && \
44
+ python3.8 -m pip install --no-cache-dir -r /code/requirements.txt && \
45
+ python3.8 -m pip install --no-cache-dir uvicorn
46
 
47
 
48
  # Set the application directory for the user
 
54
  # Expose the Uvicorn FastAPI port
55
  EXPOSE 7860
56
 
57
+ # Run the application
58
  CMD ["python3.8", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]