NeonSamurai commited on
Commit
1dfb8b2
·
verified ·
1 Parent(s): 444af79

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -10,13 +10,16 @@ RUN apt-get update && apt-get install -y \
10
 
11
  # create a writable cache directory and make sure it's writable by the container process
12
  RUN mkdir -p /app/.cache && chmod 0777 /app/.cache
 
13
 
14
  # Force all relevant libraries to use /app/.cache (writable inside the container)
15
  ENV HF_HOME=/app/.cache \
16
  TRANSFORMERS_CACHE=/app/.cache \
17
  SENTENCE_TRANSFORMERS_HOME=/app/.cache \
18
  LLAMA_INDEX_CACHE_DIR=/app/.cache \
19
- XDG_CACHE_HOME=/app/.cache
 
 
20
 
21
  # Copy files and install dependencies
22
  COPY requirements.txt ./
 
10
 
11
  # create a writable cache directory and make sure it's writable by the container process
12
  RUN mkdir -p /app/.cache && chmod 0777 /app/.cache
13
+ RUN mkdir -p /app/.streamlit && chmod 0777 /app/.streamlit
14
 
15
  # Force all relevant libraries to use /app/.cache (writable inside the container)
16
  ENV HF_HOME=/app/.cache \
17
  TRANSFORMERS_CACHE=/app/.cache \
18
  SENTENCE_TRANSFORMERS_HOME=/app/.cache \
19
  LLAMA_INDEX_CACHE_DIR=/app/.cache \
20
+ XDG_CACHE_HOME=/app/.cache\
21
+ STREAMLIT_CONFIG_DIR=/app/.streamlit \
22
+ STREAMLIT_CACHE_DIR=/app/.streamlit/cache
23
 
24
  # Copy files and install dependencies
25
  COPY requirements.txt ./