w0rd-driven commited on
Commit
dae5c98
1 Parent(s): 7b058b8

Fix current directory

Browse files

Reimplement DATA_PATH

Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -5,7 +5,7 @@ ENV LIVEBOOK_APP_SERVICE_URL "https://huggingface.co/spaces/$SPACE_AUTHOR_NAME/$
5
  ENV LIVEBOOK_UPDATE_INSTRUCTIONS_URL "https://livebook.dev"
6
  ENV LIVEBOOK_WITHIN_IFRAME "true"
7
  ENV LIVEBOOK_APPS_PATH "/public-apps"
8
- # ENV LIVEBOOK_DATA_PATH "/data"
9
  ENV LIVEBOOK_HOME "/notebooks"
10
  ENV LIVEBOOK_PORT 7860
11
 
@@ -13,7 +13,7 @@ EXPOSE 7860
13
 
14
  USER root
15
  COPY public-apps/ /public-apps
16
- # RUN chmod -R 777 /data
17
 
18
  # Customizations start
19
  # apt-get required packages
@@ -31,4 +31,6 @@ RUN mkdir -p /notebooks/data
31
  RUN chmod -R 777 /notebooks
32
 
33
  RUN cp /notebooks/public-apps/*.livemd /public-apps/
34
- RUN chmod -R 777 /public-apps
 
 
5
  ENV LIVEBOOK_UPDATE_INSTRUCTIONS_URL "https://livebook.dev"
6
  ENV LIVEBOOK_WITHIN_IFRAME "true"
7
  ENV LIVEBOOK_APPS_PATH "/public-apps"
8
+ ENV LIVEBOOK_DATA_PATH "/data"
9
  ENV LIVEBOOK_HOME "/notebooks"
10
  ENV LIVEBOOK_PORT 7860
11
 
13
 
14
  USER root
15
  COPY public-apps/ /public-apps
16
+ RUN chmod -R 777 /data
17
 
18
  # Customizations start
19
  # apt-get required packages
31
  RUN chmod -R 777 /notebooks
32
 
33
  RUN cp /notebooks/public-apps/*.livemd /public-apps/
34
+ RUN chmod -R 777 /public-apps
35
+
36
+ WORKDIR "/notebooks"