-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (32 loc) · 1.06 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
ARG BASEIMAGE=elswork/tensorflow-diy:latest
FROM ${BASEIMAGE}
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL mantainer="Eloy Lopez <elswork@gmail.com>" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="tf-jupyterlab" \
org.label-schema.description="JupyterLab + Tensorflow for amd64 and arm32v7" \
org.label-schema.url="https://deft.work" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/DeftWork/tf-jupyterlab" \
org.label-schema.vendor="Deft Work" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
RUN apt-get update && apt-get install -y --no-install-recommends \
libzmq3-dev \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip3 --no-cache-dir install \
ipykernel \
jupyterlab \
&& \
python3 -m ipykernel.kernelspec
COPY jupyter_notebook_config.py /root/.jupyter/
# Copy sample notebooks.
COPY notebooks /notebooks
# TensorBoard & Jupyter
EXPOSE 6006 8888
WORKDIR /notebooks
CMD jupyter lab --ip=* --no-browser --allow-root