forked from davidADSP/GDL_code
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile.cpu
28 lines (22 loc) · 934 Bytes
/
Dockerfile.cpu
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
# See all tag variants at https://hub.docker.com/r/tensorflow/tensorflow/tags/
# build with `ln -sf Dockerfile.cpu Dockerfile && docker build --network=host -t gdl-image-cpu .`
# Note: 'host' neworking isn't supported on macOS/windows - https://docs.docker.com/network/host/
# on macOS build with `ln -sf Dockerfile.cpu Dockerfile && docker build -t gdl-image-cpu .`
FROM tensorflow/tensorflow:latest-py3-jupyter
## modify below
ARG username=gdl
ARG groupid=1000
ARG userid=1000
## end modify
RUN apt-get update
RUN apt-get -y install graphviz
COPY ./requirements.txt /
RUN python3 -m pip install --upgrade pip
RUN pip install --no-cache-dir -r /requirements.txt
# -m option creates a fake writable home folder for Jupyter.
RUN groupadd -g $groupid $username \
&& useradd -m -r -u $userid -g $username $username
USER $username
VOLUME ["/GDL"]
WORKDIR /GDL
CMD ["jupyter", "notebook", "--no-browser", "--ip=0.0.0.0", "/GDL"]