Pamudu13 commited on
Commit
95b2f15
·
verified ·
1 Parent(s): ff897c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -19,9 +19,11 @@ COPY requirements.txt .
19
  # Install Python dependencies
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
 
 
22
 
23
  # Make port 7860 available to the world outside this container
24
  EXPOSE 7860
25
 
26
  # Run the application using gunicorn
27
- CMD gunicorn --bind 0.0.0.0:7860 app:app
 
19
  # Install Python dependencies
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
+ # Copy only the necessary files
23
+ COPY app.py /code/app.py
24
 
25
  # Make port 7860 available to the world outside this container
26
  EXPOSE 7860
27
 
28
  # Run the application using gunicorn
29
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]