Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from sony/feature/20181025-dockerfile
[doc][docker] Add Dockerfile beta
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
ARG CUDA_VER=9.0 | ||
ARG CUDNN_VER=7 | ||
|
||
FROM nvidia/cuda:${CUDA_VER}-cudnn${CUDNN_VER}-runtime-ubuntu16.04 | ||
|
||
ARG PYTHON_VER=3.5 | ||
ARG CUDA_VER=9.0 | ||
ENV PATH /opt/miniconda3/bin:$PATH | ||
ENV OMP_NUM_THREADS 1 | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
wget \ | ||
bzip2 \ | ||
curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN umask 0 \ | ||
&& wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \ | ||
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/miniconda3 \ | ||
&& rm -rf Miniconda3-latest-Linux-x86_64.sh \ | ||
&& conda install -y python=${PYTHON_VER} \ | ||
&& (pip install --no-cache-dir -U setuptools || pip install --no-cache-dir -U setuptools || pip install --no-cache-dir -U setuptools || true) \ | ||
&& conda install -y opencv jupyter | ||
|
||
RUN umask 0 \ | ||
&& pip install nnabla-ext-cuda`echo $CUDA_VER | sed 's/\.//g'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters