Skip to content

Commit

Permalink
add Dockerfile for demos
Browse files Browse the repository at this point in the history
for easier reproduction without needing a full VM
  • Loading branch information
minrk committed Jun 10, 2022
1 parent d0b564c commit 03f174b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions demos/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Dockerfile for running / testing demos
# build: `docker build -t nbgrader-demo .`
# build and run: `docker build -t nbgrader-demo . && docker run --rm -it -p 8000:8000 nbgrader-demo`
# run a demo without rebuilding by mounting the demo dir as a volume (e.g. if you are editing the demos):
# docker run --rm -it -p 8000:8000 -v $PWD:/root nbgrader-demo /root/restart_demo.sh demo_multiple_classes

FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y dist-upgrade \
&& apt-get -y install git sudo
# cache some of the bigger installs
RUN apt-get -y install python3-pip nodejs npm
RUN python3 -m pip install --upgrade jupyterhub notebook
RUN git clone https://github.com/jupyter/nbgrader /srv/nbgrader/nbgrader
# COPY is like deploy_demos.sh
COPY ./ /root/
WORKDIR /root
CMD /root/restart_demo.sh demo_one_class_multiple_graders
EXPOSE 8000

0 comments on commit 03f174b

Please sign in to comment.