Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
|
@@ -14,11 +14,13 @@ COPY src/ ./src/
|
|
| 14 |
|
| 15 |
RUN pip3 install -r requirements.txt
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 20 |
ENV TRANSFORMERS_CACHE=/app/cache
|
| 21 |
ENV HF_HOME=/app/cache
|
| 22 |
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
RUN pip3 install -r requirements.txt
|
| 16 |
|
| 17 |
+
# Add these lines
|
|
|
|
|
|
|
| 18 |
ENV TRANSFORMERS_CACHE=/app/cache
|
| 19 |
ENV HF_HOME=/app/cache
|
| 20 |
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
| 21 |
|
| 22 |
+
EXPOSE 8501
|
| 23 |
+
|
| 24 |
+
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 25 |
+
|
| 26 |
+
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|