-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
35 lines (27 loc) · 850 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
FROM tensorflow/tensorflow:2.12.0
LABEL description="Jupyter / Tensorflow 2.12.0 / Python 3.8.10 / Ubuntu 20.04.3 LTS" \
maintainer="https://github.com/rlan/notebooks"
# Avoid configuring tzdata
ARG DEBIAN_FRONTEND=noninteractive
RUN pip --no-cache-dir install -q --upgrade pip setuptools wheel
RUN pip --no-cache-dir install -q --upgrade \
ipywidgets \
jupyterlab \
matplotlib \
nltk \
opencv-python-headless \
pandas \
pillow \
scikit-learn \
scikit-image \
seaborn
# 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 /
# TensorBoard
EXPOSE 6006
# IPython
EXPOSE 8888
WORKDIR /notebooks
CMD ["/run_jupyter.sh", "--ip='*'", "--port=8888", "--no-browser", "--allow-root"]