Spaces:
Sleeping
Sleeping
Commit ·
ff85e8c
1
Parent(s): dd48301
Revert "Update dockerfile"
Browse filesThis reverts commit dd48301cc76c897b2e1327959ecf394776a197ed.
- 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
|
| 14 |
-
EXPOSE
|
| 15 |
|
| 16 |
-
#
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|