|
|
@ -152,12 +152,20 @@ if [ -d "$Wdir/project" ]; then |
|
|
|
COPY $hostnames /usr/bin |
|
|
|
COPY install-vim-plugin.sh . |
|
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
|
&& addgroup -S docker && adduser -S docker -G docker \ |
|
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
|
&& mkdir -p /home/docker/project \ |
|
|
|
&& echo "docker:docker" | chpasswd \ |
|
|
|
&& chown -R \${USER1}:\${USER1} \${SSHDIR} |
|
|
|
ENV USER=docker |
|
|
|
ENV GROUP_NAME=docker |
|
|
|
ENV UID=12345 |
|
|
|
ENV GID=23456 |
|
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
|
&& addgroup -g $GID $GROUP_NAME \ |
|
|
|
&& adduser \ |
|
|
|
--disabled-password \ |
|
|
|
--gecos "" \ |
|
|
|
--home "/home/docker" \ |
|
|
|
--ingroup "$GROUP_NAME" \ |
|
|
|
--uid "$UID" \ |
|
|
|
"$USER" |
|
|
|
|
|
|
|
CMD ["tail","-f","/dev/null"] |
|
|
|
|
|
|
@ -219,13 +227,20 @@ if [ "$Wdir" == "$HOME" ]; then |
|
|
|
COPY $hostnames /usr/bin |
|
|
|
COPY install-vim-plugin.sh . |
|
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
|
&& addgroup -S docker && adduser -S docker -G docker \ |
|
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
|
&& mkdir -p /home/docker/project \ |
|
|
|
&& echo "docker:docker" | chpasswd \ |
|
|
|
&& chown -R \${USER1}:\${USER1} \${SSHDIR} |
|
|
|
|
|
|
|
ENV USER=docker |
|
|
|
ENV GROUP_NAME=docker |
|
|
|
ENV UID=12345 |
|
|
|
ENV GID=23456 |
|
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
|
&& addgroup -g $GID $GROUP_NAME \ |
|
|
|
&& adduser \ |
|
|
|
--disabled-password \ |
|
|
|
--gecos "" \ |
|
|
|
--home "/home/docker" \ |
|
|
|
--ingroup "$GROUP_NAME" \ |
|
|
|
--uid "$UID" \ |
|
|
|
"$USER" |
|
|
|
|
|
|
|
CMD ["tail","-f","/dev/null"] |
|
|
|
|
|
|
|