11# Start with a custom image with pre-installed tools:
22FROM ghcr.io/digipres/toolbox:v1.4.1
33
4- # Install FUSE mount support so remote corpora can be used
5- # (move this up to the toolbox, if it works!)
6- RUN apt-get update && \
7- apt-get install -y fuse3 && \
8- apt-get clean && rm -rf /var/lib/apt/lists/*
9-
104# Add the Jupyter things we need
115RUN pip install --no-cache-dir jupyterlab notebook pandas altair requests bash_kernel && python -m bash_kernel.install
126
@@ -21,6 +15,7 @@ ENV USER ${NB_USER}
2115ENV NB_UID ${NB_UID}
2216ENV HOME /home/${NB_USER}
2317ENV SHELL /bin/bash
18+
2419# Create user with a home directory
2520RUN adduser --disabled-password \
2621 --gecos "Default user" \
@@ -32,7 +27,7 @@ RUN adduser --disabled-password \
3227WORKDIR ${HOME}
3328
3429# Make sure the contents of our repo are in ${HOME}
35- COPY welcome.ipynb README.md mount-pantry.sh ./
30+ COPY welcome.ipynb README.md ./
3631COPY rclone.conf .config/rclone/rclone.conf
3732ADD notebooks notebooks
3833ADD test-files test-files
@@ -41,6 +36,11 @@ ADD test-files test-files
4136COPY default.jupyterlab-workspace workspace.json
4237RUN jupyter lab workspaces import workspace.json && rm workspace.json
4338
39+ # Also install the lc-shell files in case anyone wants them:
40+ RUN curl -O -L https://librarycarpentry.org/lc-shell/data/shell-lesson.zip && \
41+ unzip shell-lesson.zip -d shell-lesson -x '__MACOSX/*' && \
42+ rm shell-lesson.zip
43+
4444# Switch to the run-time user
4545RUN chown -R ${NB_UID} ${HOME}
4646USER ${NB_USER}
0 commit comments