From d2cbf2fedf63c50f07a7caa32844d3a5371a70b3 Mon Sep 17 00:00:00 2001 From: aptalca Date: Thu, 17 Oct 2019 15:54:04 -0400 Subject: [PATCH] fix motd formatting, add curl & nano --- Dockerfile | 8 +++++--- Dockerfile.aarch64 | 8 +++++--- Dockerfile.armhf | 8 +++++--- root/etc/motd | 3 ++- 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0921398..1bf2a7a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 / \ No newline at end of file diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index bb97923..f349720 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -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 / \ No newline at end of file diff --git a/Dockerfile.armhf b/Dockerfile.armhf index e3230db..996233e 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -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 / \ No newline at end of file diff --git a/root/etc/motd b/root/etc/motd index 707aa5e..6b6d661 100644 --- a/root/etc/motd +++ b/root/etc/motd @@ -1 +1,2 @@ -Welcome to OpenSSH Server \ No newline at end of file +Welcome to OpenSSH Server +