Spaces:
Sleeping
Sleeping
setting up environment variable
Browse files- 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
|