w0rd-driven/livebook
1
1FROM ghcr.io/livebook-dev/livebook:latest-cuda11.82 3ENV LIVEBOOK_APP_SERVICE_NAME "🐳 Hugging Face - $SPACE_TITLE"4ENV LIVEBOOK_APP_SERVICE_URL "https://huggingface.co/spaces/$SPACE_AUTHOR_NAME/$SPACE_REPO_NAME"5ENV LIVEBOOK_UPDATE_INSTRUCTIONS_URL "https://livebook.dev"6ENV LIVEBOOK_WITHIN_IFRAME "true"7ENV LIVEBOOK_APPS_PATH "/public-apps"8ENV LIVEBOOK_DATA_PATH "/data"9ENV LIVEBOOK_HOME "/notebooks"10ENV LIVEBOOK_PORT 786011 12EXPOSE 786013 14USER root15COPY public-apps/ /public-apps16RUN chmod -R 777 /data17 18# Customizations start19# apt-get required packages20RUN apt-get update -yqq && apt-get install -yqq git ffmpeg21 22# Add git-sync for potential synchronization23RUN git clone https://github.com/simonthum/git-sync.git /home/livebook/git-sync24 25# Directories should be created by the git clones below26# RUN mkdir -p /notebooks/ash_tutorial27RUN git clone https://github.com/w0rd-driven/livebook_notebooks /notebooks28RUN git clone https://github.com/woutdp/ash_tutorial /notebooks/ash_tutorial29# Create our notebook-relative data directory30RUN mkdir -p /notebooks/data31RUN chmod -R 777 /notebooks32 33RUN cp /notebooks/public-apps/*.livemd /public-apps/34RUN chmod -R 777 /public-apps35 36WORKDIR "/notebooks"