fix motd formatting, add curl & nano

This commit is contained in:
aptalca 2019-10-17 15:54:04 -04:00
parent 9c20bba683
commit d2cbf2fedf
4 changed files with 17 additions and 10 deletions

View File

@ -9,14 +9,16 @@ LABEL maintainer="aptalca"
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \
openssh-server \
sudo && \
curl \
nano \
openssh-server \
sudo && \
echo "**** setup openssh environment ****" && \
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config && \
ssh-keygen -A && \
usermod --shell /bin/bash abc && \
rm -rf \
/tmp/*
/tmp/*
# add local files
COPY /root /

View File

@ -9,14 +9,16 @@ LABEL maintainer="aptalca"
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \
openssh-server \
sudo && \
curl \
nano \
openssh-server \
sudo && \
echo "**** setup openssh environment ****" && \
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config && \
ssh-keygen -A && \
usermod --shell /bin/bash abc && \
rm -rf \
/tmp/*
/tmp/*
# add local files
COPY /root /

View File

@ -9,14 +9,16 @@ LABEL maintainer="aptalca"
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \
openssh-server \
sudo && \
curl \
nano \
openssh-server \
sudo && \
echo "**** setup openssh environment ****" && \
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config && \
ssh-keygen -A && \
usermod --shell /bin/bash abc && \
rm -rf \
/tmp/*
/tmp/*
# add local files
COPY /root /

View File

@ -1 +1,2 @@
Welcome to OpenSSH Server
Welcome to OpenSSH Server