Anthony Truchet commited on
Commit
038ec37
·
1 Parent(s): 92c5ce5

fix: add missing VOLUME directive

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -0
Dockerfile CHANGED
@@ -21,6 +21,7 @@ RUN pip3 install --no-cache-dir -r $APP_CODE/requirements.txt
21
  RUN useradd -m -u 1000 user
22
 
23
  # Copy our code to $APP_CODE taking car of the permissions
 
24
  COPY --chown=user:user --chmod=u=rX src/ $APP_CODE/
25
  COPY --chown=user:user --chmod=u=rX .streamlit/ $APP_HOME/.streamlit/
26
 
@@ -29,6 +30,7 @@ COPY --chown=user:user --chmod=u=rX .streamlit/ $APP_HOME/.streamlit/
29
  # $ docker ... --mount type=volume,src=ai-playground-vol,dst=/data ...
30
  #
31
  # see https://huggingface.co/docs/hub/spaces-storage
 
32
  RUN mkdir -p /data && chown root:user /data && chmod ug+rwX /data
33
 
34
  # User
 
21
  RUN useradd -m -u 1000 user
22
 
23
  # Copy our code to $APP_CODE taking car of the permissions
24
+
25
  COPY --chown=user:user --chmod=u=rX src/ $APP_CODE/
26
  COPY --chown=user:user --chmod=u=rX .streamlit/ $APP_HOME/.streamlit/
27
 
 
30
  # $ docker ... --mount type=volume,src=ai-playground-vol,dst=/data ...
31
  #
32
  # see https://huggingface.co/docs/hub/spaces-storage
33
+ VOLUME /data
34
  RUN mkdir -p /data && chown root:user /data && chmod ug+rwX /data
35
 
36
  # User