yonikremer commited on
Commit
56bd58d
1 Parent(s): ca69e65

attempt 6 to resolve permission error

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,16 +1,16 @@
1
  FROM bitnami/pytorch
2
 
3
- RUN mkdir --mode 777 /my_streamlit_app
4
  WORKDIR /my_stramlit_app
5
 
6
  COPY ./requirements.txt /my_streamlit_app/requirements.txt
7
 
8
  RUN pip install --no-cache-dir -r /my_streamlit_app/requirements.txt
9
 
10
- RUN mkdir --mode 777 "/my_streamlit_app/.cache/"
11
- RUN mkdir --mode 777 "/my_streamlit_app/.cache/huggingface/"
12
  ENV HUGGINGFACE_HUB_CACHE="/my_streamlit_app/.cache/huggingface"
13
- RUN mkdir --mode 777 "/my_streamlit_app/.cache/transformers/"
14
  ENV TRANSFORMERS_CACHE="/my_streamlit_app/.cache/transformers"
15
 
16
  COPY . /my_streamlit_app
 
1
  FROM bitnami/pytorch
2
 
3
+ RUN mkdir --mode 666 /my_streamlit_app
4
  WORKDIR /my_stramlit_app
5
 
6
  COPY ./requirements.txt /my_streamlit_app/requirements.txt
7
 
8
  RUN pip install --no-cache-dir -r /my_streamlit_app/requirements.txt
9
 
10
+ RUN mkdir --mode 666 "/my_streamlit_app/.cache/"
11
+ RUN mkdir --mode 666 "/my_streamlit_app/.cache/huggingface/"
12
  ENV HUGGINGFACE_HUB_CACHE="/my_streamlit_app/.cache/huggingface"
13
+ RUN mkdir --mode 666 "/my_streamlit_app/.cache/transformers/"
14
  ENV TRANSFORMERS_CACHE="/my_streamlit_app/.cache/transformers"
15
 
16
  COPY . /my_streamlit_app