Skip to content
Snippets Groups Projects
Commit 7b1e2798 authored by Byungheong Jeong's avatar Byungheong Jeong
Browse files

Update Dockerfile

parent 367bb276
No related branches found
No related tags found
No related merge requests found
Pipeline #10700 failed
ARG cuda_version=10.0
ARG cudnn_version=7
# FROM nvidia/cuda:${cuda_version}-cudnn${cudnn_version}-devel
FROM docker:latest
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates curl software-properties-common
# RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg
# RUN apt-get update && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic test"
# RUN apt-get update && apt-get install -y docker-ce
FROM nvidia/cuda:${cuda_version}-cudnn${cudnn_version}-devel
# Install system packages
# RUN apt-get update && apt-get install -y --no-install-recommends \
# bzip2 \
# g++ \
# git \
# graphviz \
# libgl1-mesa-glx \
# libhdf5-dev \
# sudo\
# openmpi-bin \
# xvfb \
# screen \
# wget && \
# rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --no-install-recommends \
bzip2 \
g++ \
git \
graphviz \
libgl1-mesa-glx \
libhdf5-dev \
sudo\
openmpi-bin \
xvfb \
screen \
wget && \
rm -rf /var/lib/apt/lists/*
# Install conda
ENV CONDA_DIR /opt/conda
ENV PATH $CONDA_DIR/bin:$PATH
RUN wget --quiet --no-check-certificate https://repo.continuum.io/miniconda/Miniconda3-4.2.12-Linux-x86_64.sh && \
echo "c59b3dd3cad550ac7596e0d599b91e75d88826db132e4146030ef471bb434e9a *Miniconda3-4.2.12-Linux-x86_64.sh" | sha256sum -c - && \
/bin/bash /Miniconda3-4.2.12-Linux-x86_64.sh -f -b -p $CONDA_DIR && \
......@@ -39,11 +33,10 @@ ENV NB_UID 1000
RUN useradd -m -s /bin/bash -N -u $NB_UID $NB_USER && \
chown $NB_USER $CONDA_DIR -R && \
chown $NB_USER /userdata/kerasData -R && \
mkdir -p / && \
chown $NB_USER / && \
chpasswd $NB_USER:ar-noc
RUN usermod -aG docker ${NB_USER}
USER $NB_USER
......@@ -78,6 +71,7 @@ RUN conda install -y python=${python_version} && \
conda clean -yt
# pip install git+git://github.com/keras-team/keras.git && \
#ADD theanorc /home/keras/.theanorc
ENV LC_ALL=C.UTF-8
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment