SRA25 commited on
Commit
67e9306
·
verified ·
1 Parent(s): 1104200

setting up environment variable

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -11,6 +11,13 @@ RUN apt-get update && apt-get install -y \
11
  COPY requirements.txt ./
12
  COPY src/ ./src/
13
 
 
 
 
 
 
 
 
14
  RUN pip3 install -r requirements.txt
15
 
16
  EXPOSE 8501
 
11
  COPY requirements.txt ./
12
  COPY src/ ./src/
13
 
14
+ # ✅ Prevent Streamlit from writing to root
15
+ ENV STREAMLIT_HOME=/tmp/.streamlit
16
+ ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
17
+
18
+ # Hugging Face cache paths (redirect to /tmp)
19
+ ENV HF_HOME=/tmp/huggingface
20
+
21
  RUN pip3 install -r requirements.txt
22
 
23
  EXPOSE 8501