arcsu1 commited on
Commit
4b124b5
·
verified ·
1 Parent(s): 2f8f79e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -22,5 +22,10 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
22
  # Copy the rest of the application code into the container, changing ownership to 'user'
23
  COPY --chown=user . /app
24
 
25
- # Specify the command to run the application, using uvicorn to serve the app
26
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
22
  # Copy the rest of the application code into the container, changing ownership to 'user'
23
  COPY --chown=user . /app
24
 
25
+ # Set the Flask environment variables
26
+ ENV FLASK_APP=app.py
27
+ ENV FLASK_RUN_HOST=0.0.0.0
28
+ ENV FLASK_RUN_PORT=7860
29
+
30
+ # Specify the command to run the Flask application
31
+ CMD ["flask", "run"]