Spaces:
Build error
Build error
Commit
·
8af8bb7
1
Parent(s):
8416ea4
Update Dockerfile.txt
Browse files- Dockerfile.txt +2 -2
Dockerfile.txt
CHANGED
@@ -13,10 +13,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
13 |
# Make port 7860 available to the world outside this container
|
14 |
EXPOSE 7860
|
15 |
|
16 |
-
# Define environment
|
17 |
ENV FLASK_APP=app.py
|
18 |
ENV FLASK_RUN_HOST=0.0.0.0
|
19 |
ENV FLASK_RUN_PORT=7860
|
20 |
|
21 |
# Run app.py when the container launches
|
22 |
-
CMD ["flask", "run"]
|
|
|
13 |
# Make port 7860 available to the world outside this container
|
14 |
EXPOSE 7860
|
15 |
|
16 |
+
# Define environment variables for Flask to run in production mode
|
17 |
ENV FLASK_APP=app.py
|
18 |
ENV FLASK_RUN_HOST=0.0.0.0
|
19 |
ENV FLASK_RUN_PORT=7860
|
20 |
|
21 |
# Run app.py when the container launches
|
22 |
+
CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]
|