Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
#
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
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"]
|