|
|
@ -30,6 +30,8 @@ DOCKERuser="docker" |
|
|
|
PACKAGES=$(cat <<EOF |
|
|
|
net-tools \ |
|
|
|
tcpdump \ |
|
|
|
openssh-client \ |
|
|
|
openssh-server \ |
|
|
|
sudo \ |
|
|
|
vim |
|
|
|
EOF |
|
|
@ -130,6 +132,7 @@ if [ -d "$Wdir/project" ]; then |
|
|
|
COPY ssh/ \${SSHDIR}/ |
|
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
|
&& apt-get update && apt-get $APTPARAM install -y openssh-server $PACKAGES \ |
|
|
|
&& rm -rf /usr/share/doc \ |
|
|
|
&& rm -rf /usr/share/man \ |
|
|
|
&& rm -rf /usr/share/locale \ |
|
|
@ -208,6 +211,7 @@ if [ "$Wdir" == "$HOME" ]; then |
|
|
|
COPY ssh/ \${SSHDIR}/ |
|
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
|
&& apt-get update && apt-get $APTPARAM install -y openssh-server $PACKAGES \ |
|
|
|
&& rm -rf /usr/share/doc \ |
|
|
|
&& rm -rf /usr/share/man \ |
|
|
|
&& rm -rf /usr/share/locale \ |
|
|
|