w0rd-driven commited on
Commit
7dd2d8d
β€’
1 Parent(s): df02b29

Add git repository clones

Browse files

First attempt at seeding the data directory with existing notebooks.
Looking into at what it would take to enable `git-sync` on filesystem changes, to keep a copy of changes without having to always export.

Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -1,7 +1,9 @@
1
  FROM livebook/livebook:latest-cuda11.8
2
 
3
  # apt-get required packages
4
- RUN apt-get update -yqq && apt-get install -yqq ffmpeg
 
 
5
 
6
  ENV LIVEBOOK_APP_SERVICE_NAME "🐳 Hugging Face - $SPACE_TITLE"
7
  ENV LIVEBOOK_APP_SERVICE_URL "https://huggingface.co/spaces/$SPACE_AUTHOR_NAME/$SPACE_REPO_NAME"
@@ -13,5 +15,8 @@ ENV LIVEBOOK_PORT 7860
13
  EXPOSE 7860
14
 
15
  USER root
16
- RUN mkdir -p /data
17
  RUN chmod 777 /data
 
 
 
 
1
  FROM livebook/livebook:latest-cuda11.8
2
 
3
  # apt-get required packages
4
+ RUN apt-get update -yqq && apt-get install -yqq git ffmpeg
5
+
6
+ RUN git clone https://github.com/simonthum/git-sync.git /home/livebook/git-sync
7
 
8
  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"
 
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