-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
34 lines (18 loc) · 863 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#FROM jupyter/scipy-notebook:python-3.10.5
FROM jupyter/scipy-notebook:python-3.8.8
USER root
RUN apt-get update && apt-get --yes install apt-utils && \
apt-get --yes install htop tmux graphviz openjdk-11-jre-headless curl && \
apt-get clean;
# set the user back to original setting
USER $NB_UID
# Install from requirements.txt file
COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
RUN pip install --no-cache-dir --requirement /tmp/requirements.txt && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
#COPY --chown=${NB_UID}:${NB_GID} docker-setup.sh /tmp/
COPY --chown=${NB_UID}:${NB_GID} setup.ipynb /tmp/
RUN papermill /tmp/setup.ipynb /tmp/setup__out.ipynb -k python3 --log-output --log-level INFO --progress-bar && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"