-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
33 lines (25 loc) · 1.22 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
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
RUN date
RUN apt-get update && apt-get install -y locales && locale-gen en_US.UTF-8 && apt-get install -y git wget g++
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV PYTHONIOENCODING=utf-8
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
wget --no-check-certificate --quiet https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
/bin/bash /Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && \
rm Miniconda3-latest-Linux-x86_64.sh
RUN apt-get update && apt-get install -y libhdf5-dev
# Install tini, which will keep the container up as a PID 1
RUN apt-get install -y curl grep sed dpkg && \
TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` && \
curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb && \
dpkg -i tini.deb && \
rm tini.deb && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV PATH /opt/conda/bin:$PATH
RUN conda install python=3.6.5
COPY ./requirements.txt ./requirements.txt
RUN pip install -r ./requirements.txt
WORKDIR /workspace/fc-gaga