kopia lustrzana https://github.com/jupyterhub/repo2docker
adduser: useradd --no-log-init to reduce lastlog size
If the Docker host does not support sparse files /var/log/lastlog can be extremely large if a large UID is set. --no-log-init prevents lastlog being created.pull/804/head
rodzic
11fc69f8d6
commit
91b7d752b6
|
@ -42,10 +42,17 @@ ARG NB_UID
|
|||
ENV USER ${NB_USER}
|
||||
ENV HOME /home/${NB_USER}
|
||||
|
||||
RUN adduser --disabled-password \
|
||||
--gecos "Default user" \
|
||||
--uid ${NB_UID} \
|
||||
${NB_USER}
|
||||
RUN groupadd \
|
||||
--gid ${NB_UID} \
|
||||
${NB_USER} &&
|
||||
useradd \
|
||||
--comment "Default user" \
|
||||
--create-home \
|
||||
--gid ${NB_UID} \
|
||||
--no-log-init \
|
||||
--shell /bin/bash \
|
||||
--uid ${NB_UID} \
|
||||
${NB_USER}
|
||||
|
||||
RUN wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
|
||||
DISTRO="bionic" && \
|
||||
|
|
Ładowanie…
Reference in New Issue