-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (26 loc) · 1.04 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
FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04
LABEL description="Conda 3 / nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04" \
maintainer="https://github.com/rlan/docker"
ARG CONDA_INSTALLER="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
# 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/docker" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV PATH /opt/conda/bin:$PATH
RUN apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends \
bzip2 \
ca-certificates \
wget \
&& apt-get -qq clean \
&& wget --quiet $CONDA_INSTALLER -O /tmp/miniconda.sh \
&& chmod +x /tmp/miniconda.sh \
&& /tmp/miniconda.sh -b -p /opt/conda \
&& conda clean -aqy \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*