Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -2,7 +2,7 @@ FROM python:3.12.2
|
|
2 |
|
3 |
# Set environment variables
|
4 |
ENV PYTHONUNBUFFERED=1 \
|
5 |
-
|
6 |
FLASK_ENV=production \
|
7 |
FLASK_APP=app.py \
|
8 |
PORT=5003
|
@@ -19,6 +19,7 @@ RUN pip install -r requirements.txt
|
|
19 |
# Preload NLTK data
|
20 |
RUN python -m nltk.downloader punkt punkt_tab -d /tmp/nltk_data
|
21 |
|
|
|
22 |
# Expose the port the app runs on
|
23 |
EXPOSE 5003
|
24 |
|
|
|
2 |
|
3 |
# Set environment variables
|
4 |
ENV PYTHONUNBUFFERED=1 \
|
5 |
+
HF_HOME=/tmp/huggingface_cache \
|
6 |
FLASK_ENV=production \
|
7 |
FLASK_APP=app.py \
|
8 |
PORT=5003
|
|
|
19 |
# Preload NLTK data
|
20 |
RUN python -m nltk.downloader punkt punkt_tab -d /tmp/nltk_data
|
21 |
|
22 |
+
|
23 |
# Expose the port the app runs on
|
24 |
EXPOSE 5003
|
25 |
|