WebashalarForML commited on
Commit
9664235
·
verified ·
1 Parent(s): d7c11cc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -16,11 +16,12 @@ RUN pip install --upgrade pip && pip install -r requirements.txt
16
  # Copy the rest of the application code into the container
17
  COPY . .
18
 
19
- # Expose port 7860 (or any other port your Flask app uses)
20
- EXPOSE 7860
21
 
22
- # Define environment variable for Flask (optional)
23
- ENV FLASK_APP=app.py
24
 
25
- # Run the application
26
- CMD ["python", "app.py"]
 
 
16
  # Copy the rest of the application code into the container
17
  COPY . .
18
 
19
+ # Run the application
20
+ COPY . /app/
21
 
22
+ ENV FLASK_APP=app.py \
23
+ FLASK_ENV=production
24
 
25
+ EXPOSE 7860
26
+
27
+ CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]