AronWolverine commited on
Commit
ff85e8c
·
1 Parent(s): dd48301

Revert "Update dockerfile"

Browse files

This reverts commit dd48301cc76c897b2e1327959ecf394776a197ed.

Files changed (1) hide show
  1. dockerfile +8 -4
dockerfile CHANGED
@@ -10,8 +10,12 @@ COPY . .
10
  # Install required Python packages
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Expose the FastAPI app's port (default: 8000)
14
- EXPOSE 7860
15
 
16
- # Command to run the FastAPI application using Uvicorn
17
- CMD ["uvicorn", "app:app", "--host=0.0.0.0", "--port=7860"]
 
 
 
 
 
10
  # Install required Python packages
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Expose the Flask app's port (default: 5000)
14
+ EXPOSE 5000
15
 
16
+ # Set environment variables for Flask
17
+ ENV FLASK_APP=app.py
18
+ ENV FLASK_RUN_HOST=0.0.0.0
19
+
20
+ # Command to run the Flask application
21
+ CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"]