Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -4,6 +4,10 @@ FROM python:3.12.7
|
|
4 |
#ENV HOME=/root
|
5 |
ENV TRANSFORMERS_CACHE=/app/cache
|
6 |
ENV HF_HOME=/app/cache
|
|
|
|
|
|
|
|
|
7 |
|
8 |
# Create writable cache
|
9 |
RUN mkdir -p /app/cache
|
@@ -30,4 +34,4 @@ RUN python3 -c "from transformers import pipeline; pipeline('question-answering'
|
|
30 |
EXPOSE 8501
|
31 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
32 |
|
33 |
-
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0","--server.enableCORS=false"]
|
|
|
4 |
#ENV HOME=/root
|
5 |
ENV TRANSFORMERS_CACHE=/app/cache
|
6 |
ENV HF_HOME=/app/cache
|
7 |
+
# Set environment variables
|
8 |
+
ENV STREAMLIT_WATCHER_TYPE=none \
|
9 |
+
PYTHONUNBUFFERED=1 \
|
10 |
+
PYTHONDONTWRITEBYTECODE=1
|
11 |
|
12 |
# Create writable cache
|
13 |
RUN mkdir -p /app/cache
|
|
|
34 |
EXPOSE 8501
|
35 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
36 |
|
37 |
+
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0","--server.enableCORS=false","--server.enableXsrfProtection=false"]
|