meg HF staff commited on
Commit
497b887
·
verified ·
1 Parent(s): 206fb02

Trying to make /data and /.cache directories appear, and have the content that the logs say is being written out to it.

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -15,11 +15,13 @@ ARG TARGETPLATFORM
15
 
16
  ENV PATH=/opt/conda/bin:$PATH
17
 
18
- RUN mkdir .cache
19
- RUN mkdir data
20
  # I'm not sure how to allow later python files used here to write to .cache without making it world-writeable.
21
- RUN chmod 777 -R .cache
22
- RUN chmod 777 -R data
 
 
23
 
24
  RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
25
  build-essential \
 
15
 
16
  ENV PATH=/opt/conda/bin:$PATH
17
 
18
+ RUN mkdir -p /.cache
19
+ RUN mkdir -p /data
20
  # I'm not sure how to allow later python files used here to write to .cache without making it world-writeable.
21
+ RUN chmod 777 -R /.cache
22
+ RUN chmod 777 -R /data
23
+
24
+ WORKDIR /data
25
 
26
  RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
27
  build-essential \