Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8730e19

Browse files
committed
Strip stuff that doesn't work, add lc-shell files.
1 parent a4b6849 commit 8730e19

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# Start with a custom image with pre-installed tools:
22
FROM 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
115
RUN 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}
2115
ENV NB_UID ${NB_UID}
2216
ENV HOME /home/${NB_USER}
2317
ENV SHELL /bin/bash
18+
2419
# Create user with a home directory
2520
RUN adduser --disabled-password \
2621
--gecos "Default user" \
@@ -32,7 +27,7 @@ RUN adduser --disabled-password \
3227
WORKDIR ${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 ./
3631
COPY rclone.conf .config/rclone/rclone.conf
3732
ADD notebooks notebooks
3833
ADD test-files test-files
@@ -41,6 +36,11 @@ ADD test-files test-files
4136
COPY default.jupyterlab-workspace workspace.json
4237
RUN 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
4545
RUN chown -R ${NB_UID} ${HOME}
4646
USER ${NB_USER}

0 commit comments

Comments
 (0)