dejanseo commited on
Commit
8d24b7c
·
verified ·
1 Parent(s): eb1b48e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -12,7 +12,11 @@ RUN apt-get update && apt-get install -y \
12
  COPY requirements.txt ./
13
  COPY src/ ./src/
14
 
 
15
  ENV TRANSFORMERS_CACHE=/app/cache/huggingface
 
 
 
16
  RUN mkdir -p /app/cache/huggingface && chmod -R 777 /app/cache
17
 
18
  RUN pip3 install -r requirements.txt
@@ -21,4 +25,4 @@ EXPOSE 8501
21
 
22
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
23
 
24
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
12
  COPY requirements.txt ./
13
  COPY src/ ./src/
14
 
15
+ # Hugging Face cache config
16
  ENV TRANSFORMERS_CACHE=/app/cache/huggingface
17
+ ENV HF_HOME=/app/cache/huggingface
18
+ ENV HUGGINGFACE_HUB_CACHE=/app/cache/huggingface
19
+
20
  RUN mkdir -p /app/cache/huggingface && chmod -R 777 /app/cache
21
 
22
  RUN pip3 install -r requirements.txt
 
25
 
26
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
27
 
28
+ ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]