-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
40 lines (31 loc) · 1.51 KB
/
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
35
36
37
38
39
40
# We will run the dev_image for local development.
FROM jupyter/tensorflow-notebook as dev_image
MAINTAINER [email protected]
# Uncomment to install any dependencies (install these before
# performing steps with files that may change frequently so that
# layers may be cached). Best practice for installing apt dependencies
# without saving apt-cache:
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
# USER root
# RUN apt-get update && apt-get install -y \
# curl \
# && rm -rf /var/lib/apt/lists/*
# USER jovyan
# A section like the following can be useful when your base image runs
# as the root user (not necessary for Jupyter Docker images). This
# will create a user with the same uid and gid as our host user,
# meaning files created in the image after this step and during
# container will be owned by our user on the host.
ARG GROUP_ID=1000
ARG USER_ID=1000
# RUN groupadd --gid $GROUP_ID coder
# RUN useradd --uid $USER_ID --gid coder --shell /bin/bash --create-home coder
# USER coder
# Pip packages will be installed in a directory we can mount from the
# host as a volume.
ENV PYTHONUSERBASE=/home/jovyan/lemma/.pip-packages
ENV PATH=$PATH:/home/jovyan/lemma/.pip-packages/bin
RUN touch /home/jovyan/CREATE_FILES_IN_WORK_DIRECTORY__FILES_CREATED_HERE_WILL_BE_LOST
COPY ./.binder/jupyter_notebook_config.py /home/jovyan/.jupyter/jupyter_notebook_config.py
COPY ./.binder/custom.js /home/jovyan/.jupyter/custom/custom.js
RUN ln -s /home/jovyan/lemma/.pypirc /home/jovyan/.pypirc