-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
41 lines (32 loc) · 1017 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
35
36
37
38
39
40
41
FROM wqael/notebooks:keras-tf1.12.0-conda2
LABEL description="Jupyter / Keras / Tensorflow / Conda 2" \
maintainer="https://github.com/rlan/notebooks"
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/rlan/notebooks" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
RUN conda install --quiet \
jupyterlab \
matplotlib \
opencv \
pillow \
scikit-learn \
scikit-image \
&& conda clean -tipsy
# Set up our notebook config.
COPY jupyter_notebook_config.py /root/.jupyter/
# Jupyter has issues with being run directly:
# https://github.com/ipython/ipython/issues/7062
# We just add a little wrapper script.
COPY run_jupyter.sh /
# IPython
EXPOSE 8888
# TensorBoard
EXPOSE 6006
WORKDIR /notebooks
CMD ["/run_jupyter.sh", "--allow-root"]