forked from udacity/CarND-Term1-Starter-Kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.cpu
51 lines (42 loc) · 1.14 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM python:3.5.2
MAINTAINER @joshuacook
# Pick up some TF dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
libfreetype6-dev \
libpng12-dev \
libzmq3-dev \
pkg-config \
python3-dev \
rsync \
software-properties-common \
unzip \
libgtk2.0-0 \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ADD https://repo.continuum.io/miniconda/Miniconda3-4.2.12-Linux-x86_64.sh tmp/Miniconda3-4.2.12-Linux-x86_64.sh
RUN bash tmp/Miniconda3-4.2.12-Linux-x86_64.sh -b
ENV PATH $PATH:/root/miniconda3/bin/
COPY environment.yml .
RUN conda env create -f environment.yml
# Cleanup tarballs and downloaded package files
RUN conda clean -tp -y
# Set up our notebook config.
COPY jupyter_notebook_config.py /root/.jupyter/
# Term 1 workdir
RUN mkdir /src
WORKDIR "/src"
# TensorBoard
EXPOSE 6006
# Jupyter
EXPOSE 8888
# Flask Server
EXPOSE 4567
## Two Birds, One Stone
# 1. sources conda environment
# 2. prevents the zombie container issue when started as pid 1
COPY run.sh /
RUN chmod +x /run.sh
ENTRYPOINT ["/run.sh"]