Spaces:
Sleeping
Sleeping
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" |