Spaces:
Sleeping
Sleeping
File size: 1,202 Bytes
b557337 0ad71e5 376d94a dae5c98 6742d08 0ad71e5 376d94a dae5c98 0f5d6f2 6742d08 7dd2d8d 6742d08 7764640 6742d08 dae5c98 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
FROM ghcr.io/livebook-dev/livebook:latest-cuda11.8
ENV LIVEBOOK_APP_SERVICE_NAME "🐳 Hugging Face - $SPACE_TITLE"
ENV LIVEBOOK_APP_SERVICE_URL "https://huggingface.co/spaces/$SPACE_AUTHOR_NAME/$SPACE_REPO_NAME"
ENV LIVEBOOK_UPDATE_INSTRUCTIONS_URL "https://livebook.dev"
ENV LIVEBOOK_WITHIN_IFRAME "true"
ENV LIVEBOOK_APPS_PATH "/public-apps"
ENV LIVEBOOK_DATA_PATH "/data"
ENV LIVEBOOK_HOME "/notebooks"
ENV LIVEBOOK_PORT 7860
EXPOSE 7860
USER root
COPY public-apps/ /public-apps
RUN chmod -R 777 /data
# Customizations start
# apt-get required packages
RUN apt-get update -yqq && apt-get install -yqq git ffmpeg
# Add git-sync for potential synchronization
RUN git clone https://github.com/simonthum/git-sync.git /home/livebook/git-sync
# Directories should be created by the git clones below
# RUN mkdir -p /notebooks/ash_tutorial
RUN git clone https://github.com/w0rd-driven/livebook_notebooks /notebooks
RUN git clone https://github.com/woutdp/ash_tutorial /notebooks/ash_tutorial
# Create our notebook-relative data directory
RUN mkdir -p /notebooks/data
RUN chmod -R 777 /notebooks
RUN cp /notebooks/public-apps/*.livemd /public-apps/
RUN chmod -R 777 /public-apps
WORKDIR "/notebooks" |