|
|
@ -160,13 +160,13 @@ if [ -d "$Wdir/project" ]; then |
|
|
|
COPY ssh/ \${SSHDIR}/ |
|
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
|
&& useradd -ms /bin/bash docker \ |
|
|
|
&& rm -rf /usr/share/doc \ |
|
|
|
&& rm -rf /usr/share/man \ |
|
|
|
&& rm -rf /usr/share/locale \ |
|
|
|
&& mkdir -p /var/run/sshd \ |
|
|
|
&& echo 'root:pass' | chpasswd \ |
|
|
|
&& echo "export VISIBLE=now" >> /etc/profile \ |
|
|
|
&& addgroup -S docker && adduser -S docker -G docker \ |
|
|
|
&& mkdir -p /home/docker/project \ |
|
|
|
&& mkdir -p /etc/opt \ |
|
|
|
&& echo "docker:docker" | chpasswd \ |
|
|
@ -242,13 +242,13 @@ if [ "$Wdir" == "$HOME" ]; then |
|
|
|
ENV USER_HOME /home/docker |
|
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
|
&& useradd -ms /bin/bash docker \ |
|
|
|
&& rm -rf /usr/share/doc \ |
|
|
|
&& rm -rf /usr/share/man \ |
|
|
|
&& rm -rf /usr/share/locale \ |
|
|
|
&& mkdir -p /var/run/sshd \ |
|
|
|
&& echo 'root:pass' | chpasswd \ |
|
|
|
&& echo "export VISIBLE=now" >> /etc/profile \ |
|
|
|
&& addgroup -S docker && adduser -S docker -G docker \ |
|
|
|
&& mkdir -p /home/docker/project \ |
|
|
|
&& mkdir -p /etc/opt \ |
|
|
|
&& echo "docker:docker" | chpasswd \ |
|
|
|