Commit ebb42274 authored by Peter Parente's avatar Peter Parente Committed by GitHub

Merge pull request #720 from rwmajor2/build_user_args

Changed Dockerfile for USER/ID/GID to be Docker build arguments
parents f2889d7a 4d273b48
......@@ -7,6 +7,9 @@ ARG BASE_CONTAINER=ubuntu:bionic-20180526@sha256:c8c275751219dadad8fa56b3ac41ca6
FROM $BASE_CONTAINER
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
ARG NB_USER="jovyan"
ARG NB_UID="1000"
ARG NB_GID="100"
USER root
......@@ -30,9 +33,9 @@ RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
# Configure environment
ENV CONDA_DIR=/opt/conda \
SHELL=/bin/bash \
NB_USER=jovyan \
NB_UID=1000 \
NB_GID=100 \
NB_USER=$NB_USER \
NB_UID=$NB_UID \
NB_GID=$NB_GID \
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment