diff --git a/Dockerfile b/Dockerfile index e9065040b52130675e30bc9e6adc79f20850e30f..c5e1cfa2049f1c287213908d78417d6a9fce5edb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ wget && \ rm -rf /var/lib/apt/lists/* +RUN apt-get -y install sudo + # Install conda ENV CONDA_DIR /opt/conda ENV PATH $CONDA_DIR/bin:$PATH @@ -29,10 +31,13 @@ RUN wget --quiet --no-check-certificate https://repo.continuum.io/miniconda/Mini ENV NB_USER keras ENV NB_UID 1000 +RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo + RUN useradd -m -s /bin/bash -N -u $NB_UID $NB_USER && \ chown $NB_USER $CONDA_DIR -R && \ mkdir -p /src && \ - chown $NB_USER /src + chown $NB_USER /src && \ + adduser $NB_USER sudo && chpasswd $NB_USER:ar-noc USER $NB_USER