Junr-syl commited on
Commit
fb41dcd
·
1 Parent(s): bd24b56

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -5
Dockerfile CHANGED
@@ -1,10 +1,6 @@
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=development
8
 
9
  # Set the working directory in the container
10
  WORKDIR /app
@@ -19,4 +15,4 @@ RUN pip install pip install --no-cache-dir --upgrade -r requirements.txt
19
  EXPOSE 7860
20
 
21
  # Define the command to run the Flask app
22
- CMD ["Python3", "src/app.py"]
 
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
  EXPOSE 7860
16
 
17
  # Define the command to run the Flask app
18
+ CMD ["flask", "--app", "src\app.py" "run"]