Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -16,7 +16,8 @@ RUN pip install --no-cache-dir -r Requirements.txt
|
|
16 |
# Set the environment variable for Hugging Face cache location
|
17 |
ENV HF_HOME=/app/.cache
|
18 |
|
19 |
-
#
|
|
|
20 |
|
21 |
-
# Run the
|
22 |
-
|
|
|
16 |
# Set the environment variable for Hugging Face cache location
|
17 |
ENV HF_HOME=/app/.cache
|
18 |
|
19 |
+
# Define environment variable for Flask app port (optional but not needed in HF Spaces)
|
20 |
+
ENV PORT=7680
|
21 |
|
22 |
+
# Run the application using Gunicorn
|
23 |
+
ENTRYPOINT ["gunicorn", "--bind", "0.0.0.0:7680", "application:application"]
|