|
|
@ -124,6 +124,7 @@ if [ -d "$Wdir/project" ]; then |
|
|
|
|
|
|
|
ENV NOTVISIBLE "in users profile" |
|
|
|
ENV USER1 docker |
|
|
|
ENV USER1_ID 1001 |
|
|
|
ENV USER_HOME /home/docker |
|
|
|
ENV SSHDIR \${USER_HOME}/.ssh |
|
|
|
COPY ssh/ \${SSHDIR}/ |
|
|
@ -133,6 +134,7 @@ if [ -d "$Wdir/project" ]; then |
|
|
|
&& rm -rf /usr/share/man \ |
|
|
|
&& rm -rf /usr/share/locale \ |
|
|
|
&& mkdir -p /var/run/sshd \ |
|
|
|
&& useradd -m -s /bin/bash -N -u $USER1_UID $USER1 \ |
|
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
|
&& echo "export VISIBLE=now" >> /etc/profile \ |
|
|
|
&& mkdir -p /home/docker/project \ |
|
|
@ -200,6 +202,7 @@ if [ "$Wdir" == "$HOME" ]; then |
|
|
|
|
|
|
|
ENV NOTVISIBLE "in users profile" |
|
|
|
ENV USER1 docker |
|
|
|
ENV USER1_ID 1001 |
|
|
|
ENV USER_HOME /home/docker |
|
|
|
ENV SSHDIR \${USER_HOME}/.ssh |
|
|
|
COPY ssh/ \${SSHDIR}/ |
|
|
@ -209,6 +212,7 @@ if [ "$Wdir" == "$HOME" ]; then |
|
|
|
&& rm -rf /usr/share/man \ |
|
|
|
&& rm -rf /usr/share/locale \ |
|
|
|
&& mkdir -p /var/run/sshd \ |
|
|
|
&& useradd -m -s /bin/bash -N -u $USER1_UID $USER1 \ |
|
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
|
&& echo "export VISIBLE=now" >> /etc/profile \ |
|
|
|
&& mkdir -p /home/docker/project \ |
|
|
|