w0rd-driven commited on
Commit
376d94a
1 Parent(s): 5d36f92

Add public-apps

Browse files

Import changes from upstream to include public-apps. We also copy apps from the git repo to hopefully boot these notebooks at runtime.

Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -9,14 +9,17 @@ ENV LIVEBOOK_APP_SERVICE_NAME "🐳 Hugging Face - $SPACE_TITLE"
9
  ENV LIVEBOOK_APP_SERVICE_URL "https://huggingface.co/spaces/$SPACE_AUTHOR_NAME/$SPACE_REPO_NAME"
10
  ENV LIVEBOOK_UPDATE_INSTRUCTIONS_URL "https://livebook.dev"
11
  ENV LIVEBOOK_WITHIN_IFRAME "true"
 
12
  ENV LIVEBOOK_DATA_PATH "/data"
13
  ENV LIVEBOOK_PORT 7860
14
 
15
  EXPOSE 7860
16
 
17
  USER root
 
18
  RUN mkdir -p /data/notebooks
19
  RUN chmod 777 /data
20
  RUN chmod 777 /data/notebooks
21
 
22
- RUN git clone https://github.com/w0rd-driven/livebook_notebooks /data/notebooks
 
 
9
  ENV LIVEBOOK_APP_SERVICE_URL "https://huggingface.co/spaces/$SPACE_AUTHOR_NAME/$SPACE_REPO_NAME"
10
  ENV LIVEBOOK_UPDATE_INSTRUCTIONS_URL "https://livebook.dev"
11
  ENV LIVEBOOK_WITHIN_IFRAME "true"
12
+ ENV LIVEBOOK_APPS_PATH "/public-apps"
13
  ENV LIVEBOOK_DATA_PATH "/data"
14
  ENV LIVEBOOK_PORT 7860
15
 
16
  EXPOSE 7860
17
 
18
  USER root
19
+ COPY public-apps/ /public-apps
20
  RUN mkdir -p /data/notebooks
21
  RUN chmod 777 /data
22
  RUN chmod 777 /data/notebooks
23
 
24
+ RUN git clone https://github.com/w0rd-driven/livebook_notebooks /data/notebooks
25
+ RUN cp /data/notebooks/public-apps/*.livemd /public-apps/