-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (33 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
FROM tensorflow/tensorflow:1.12.3-gpu-py3
# According to docker inspect:
# CUDA_VERSION=9.0.176
LABEL description="Environment based on official GPU-supported tensorflow docker image." \
maintainer="https://github.com/rlan/mldock"
# 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/mldock" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
ARG PYTHON=python3
ARG PIP=pip3
# See http://bugs.python.org/issue19846
ENV LANG C.UTF-8
# Update
RUN ${PYTHON} -m pip install -q --upgrade pip setuptools wheel
# Install Keras
RUN apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends \
graphviz \
libhdf5-dev \
&& apt-get -qq clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& ${PIP} --no-cache-dir install -q --upgrade \
h5py \
keras \
pydot
# TensorBoard
EXPOSE 6006