Skip to content

Commit 748c2ca

Browse files
committed
Adding tensorflow for ELEC502
1 parent e07e337 commit 748c2ca

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

tensorflow-notebook/Dockerfile

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

0 commit comments

Comments
 (0)