RanM commited on
Commit
5b16b71
1 Parent(s): 36069fa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -23,9 +23,7 @@ USER user
23
 
24
  # Set home to the user's home directory
25
  ENV HOME=/home/user \
26
- PATH=/home/user/.local/bin:$PATH \
27
- PYTHONPATH=$HOME/app \
28
- PYTHONUNBUFFERED=1
29
 
30
  # Set the working directory to the user's home directory
31
  WORKDIR $HOME/app
@@ -40,4 +38,4 @@ RUN pip install --no-cache-dir -r requirements.txt
40
  EXPOSE 7860
41
 
42
  # Command to run the application
43
- CMD ["python", "app.py"]
 
23
 
24
  # Set home to the user's home directory
25
  ENV HOME=/home/user \
26
+ PATH=/home/user/.local/bin:$PATH
 
 
27
 
28
  # Set the working directory to the user's home directory
29
  WORKDIR $HOME/app
 
38
  EXPOSE 7860
39
 
40
  # Command to run the application
41
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]