File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ARG BASE_CONTAINER=quay.io/jupyter/tensorflow-notebook:hub-5.4.3
2+ FROM $BASE_CONTAINER
3+
4+ LABEL maintainer="Ryoko <ryoko.norden@ubc.ca>"
5+
6+ USER root
7+
8+ RUN apt-get update && \
9+ apt-get install -y --no-install-recommends \
10+ curl \
11+ wget \
12+ unzip \
13+ tzdata \
14+ wkhtmltopdf && \
15+ apt-get clean && \
16+ apt-get autoremove -y
17+
18+ USER ${NB_UID}
19+
20+ # Copy and run common install script
21+ USER root
22+ COPY install-common.sh /tmp/install-common.sh
23+ RUN chown jovyan:users /tmp/install-common.sh && chmod +x /tmp/install-common.sh
24+ USER ${NB_UID}
25+ RUN /bin/bash -x /tmp/install-common.sh
26+
27+ # pip
28+ RUN pip install --no-cache-dir \
29+ jupyter \
30+ opencv-python-headless \
31+ plotly \
32+ skorch \
33+ torch \
34+ torchvision \
35+ torchaudio \
36+ torch-inspect \
37+ nbgrader
38+
39+ # Fix ownership in case root touched files
40+ USER root
41+ RUN chown -R jovyan:users /home/jovyan
42+
43+ USER jovyan
44+ ENV HOME=/home/jovyan
45+ WORKDIR $HOME
You can’t perform that action at this time.
0 commit comments