|
@ -153,19 +153,10 @@ if [ -d "$Wdir/project" ]; then |
|
|
COPY install-vim-plugin.sh . |
|
|
COPY install-vim-plugin.sh . |
|
|
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
&& rm -rf /usr/share/doc \ |
|
|
|
|
|
&& rm -rf /usr/share/man \ |
|
|
|
|
|
&& rm -rf /usr/share/locale \ |
|
|
|
|
|
&& mkdir -p /var/run/sshd \ |
|
|
|
|
|
&& addgroup -S docker && adduser -S docker -G docker \ |
|
|
&& addgroup -S docker && adduser -S docker -G docker \ |
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
&& echo "export VISIBLE=now" >> /etc/profile \ |
|
|
|
|
|
&& mkdir -p /home/docker/project \ |
|
|
&& mkdir -p /home/docker/project \ |
|
|
&& mkdir -p /etc/opt \ |
|
|
|
|
|
&& echo "docker:docker" | chpasswd \ |
|
|
&& echo "docker:docker" | chpasswd \ |
|
|
&& echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ |
|
|
|
|
|
&& cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ |
|
|
|
|
|
&& chmod -R 600 \${SSHDIR}/* \ |
|
|
|
|
|
&& chown -R \${USER1}:\${USER1} \${SSHDIR} |
|
|
&& chown -R \${USER1}:\${USER1} \${SSHDIR} |
|
|
|
|
|
|
|
|
CMD ["tail","-f","/dev/null"] |
|
|
CMD ["tail","-f","/dev/null"] |
|
@ -229,21 +220,13 @@ if [ "$Wdir" == "$HOME" ]; then |
|
|
COPY install-vim-plugin.sh . |
|
|
COPY install-vim-plugin.sh . |
|
|
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
&& rm -rf /usr/share/doc \ |
|
|
|
|
|
&& rm -rf /usr/share/man \ |
|
|
|
|
|
&& rm -rf /usr/share/locale \ |
|
|
|
|
|
&& mkdir -p /var/run/sshd \ |
|
|
|
|
|
&& addgroup -S docker && adduser -S docker -G docker \ |
|
|
&& addgroup -S docker && adduser -S docker -G docker \ |
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
&& echo "export VISIBLE=now" >> /etc/profile \ |
|
|
|
|
|
&& mkdir -p /home/docker/project \ |
|
|
&& mkdir -p /home/docker/project \ |
|
|
&& mkdir -p /etc/opt \ |
|
|
|
|
|
&& echo "docker:docker" | chpasswd \ |
|
|
&& echo "docker:docker" | chpasswd \ |
|
|
&& echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ |
|
|
|
|
|
&& cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ |
|
|
|
|
|
&& chmod -R 600 \${SSHDIR}/* \ |
|
|
|
|
|
&& chown -R \${USER1}:\${USER1} \${SSHDIR} |
|
|
&& chown -R \${USER1}:\${USER1} \${SSHDIR} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CMD ["tail","-f","/dev/null"] |
|
|
CMD ["tail","-f","/dev/null"] |
|
|
|
|
|
|
|
|
EOF |
|
|
EOF |
|
|