Junr-syl commited on
Commit
4e05993
1 Parent(s): b7756f0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -1,6 +1,10 @@
1
  # Use an official Python runtime as a parent image
2
  FROM python:3.9-slim-buster
3
 
 
 
 
 
4
 
5
  # Set the working directory in the container
6
  WORKDIR /app
@@ -15,4 +19,4 @@ RUN pip install pip install --no-cache-dir --upgrade -r requirements.txt
15
  EXPOSE 7860
16
 
17
  # Define the command to run the Flask app
18
- CMD ["flask", "--app", "src\app.py" "run"]
 
1
  # Use an official Python runtime as a parent image
2
  FROM python:3.9-slim-buster
3
 
4
+ # Set environment variables for Flask
5
+ ENV FLASK_APP=app.py
6
+ ENV FLASK_RUN_HOST=0.0.0.0
7
+ ENV FLASK_ENV=production
8
 
9
  # Set the working directory in the container
10
  WORKDIR /app
 
19
  EXPOSE 7860
20
 
21
  # Define the command to run the Flask app
22
+ CMD ["Python3", "src/app.py"]