mahsharyahan commited on
Commit
9ab4e91
·
verified ·
1 Parent(s): d91268f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -14,11 +14,13 @@ COPY src/ ./src/
14
 
15
  RUN pip3 install -r requirements.txt
16
 
17
- EXPOSE 8501
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
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
 
 
 
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"]