sakshamlakhera commited on
Commit
1cce45a
·
1 Parent(s): 7828ad5

docker change6

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -25,6 +25,14 @@ RUN mkdir -p $STREAMLIT_HOME $TORCH_HOME $GDOWN_HOME $XDG_CACHE_HOME /app/assets
25
  && chmod -R 777 $STREAMLIT_HOME $TORCH_HOME $GDOWN_HOME $XDG_CACHE_HOME /app/assets
26
 
27
 
 
 
 
 
 
 
 
 
28
  # Install Python dependencies
29
  RUN pip3 install --no-cache-dir -r requirements.txt
30
 
 
25
  && chmod -R 777 $STREAMLIT_HOME $TORCH_HOME $GDOWN_HOME $XDG_CACHE_HOME /app/assets
26
 
27
 
28
+ ENV STREAMLIT_HOME="/app/.streamlit"
29
+ ENV TORCH_HOME="/app/.cache/torch"
30
+ ENV GDOWN_HOME="/app/.cache/gdown"
31
+ ENV XDG_CACHE_HOME="/app/.cache"
32
+
33
+ RUN mkdir -p $STREAMLIT_HOME $TORCH_HOME $GDOWN_HOME $XDG_CACHE_HOME /app/assets \
34
+ && chmod -R 777 $STREAMLIT_HOME $TORCH_HOME $GDOWN_HOME $XDG_CACHE_HOME /app/assets
35
+
36
  # Install Python dependencies
37
  RUN pip3 install --no-cache-dir -r requirements.txt
38