FrancescoConte commited on
Commit
12ff843
·
1 Parent(s): 219a131

Edited Dockerfile to handle the streamlit permissions

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -6,9 +6,14 @@ ENV DEBIAN_FRONTEND=noninteractive
6
 
7
  # Set environment variables for Streamlit and Hugging Face
8
  ENV HF_HUB_CACHE=/app/hf_cache
9
- ENV TRANSFORMERS_CACHE=/app/hf_cache
10
  ENV STREAMLIT_SERVER_PORT=8501
11
  ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
 
 
 
 
 
12
  # Create working directory
13
  WORKDIR /app
14
 
 
6
 
7
  # Set environment variables for Streamlit and Hugging Face
8
  ENV HF_HUB_CACHE=/app/hf_cache
9
+ ENV HF_HOME=/app/hf_cache
10
  ENV STREAMLIT_SERVER_PORT=8501
11
  ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
12
+ ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
13
+ ENV HOME=/app
14
+
15
+ RUN mkdir -p /app/.streamlit
16
+
17
  # Create working directory
18
  WORKDIR /app
19