0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-12-22 13:14:42 -05:00

Install upgrades

This commit is contained in:
Adrian Dvergsdal 2024-07-14 22:49:50 +02:00
parent 1929ae5c49
commit c8e0a481d4
No known key found for this signature in database
GPG key ID: C1E9E2D9552A42D2
2 changed files with 6 additions and 3 deletions

View file

@ -2,10 +2,11 @@ FROM debian:bullseye
MAINTAINER Adrian Dvergsdal [atmoz.net]
# Steps done in one RUN layer:
# - Install packages
# - Install upgrades and new packages
# - OpenSSH needs /var/run/sshd to run
# - Remove generic host keys, entrypoint generates unique keys
RUN apt-get update && \
apt-get upgrade -y && \
DEBIAN_FRONTEND="noninteractive" apt-get -y install --no-install-recommends openssh-server && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p /var/run/sshd && \

View file

@ -2,10 +2,12 @@ FROM alpine:latest
MAINTAINER Adrian Dvergsdal [atmoz.net]
# Steps done in one RUN layer:
# - Install packages
# - Install upgrades and new packages
# - OpenSSH needs /var/run/sshd to run
# - Remove generic host keys, entrypoint generates unique keys
RUN apk add --no-cache bash shadow openssh-server-pam openssh-sftp-server && \
RUN apk update && apk upgrade && \
apk add bash shadow openssh-server-pam openssh-sftp-server && \
rm -rf /var/cache/apk/* && \
ln -s /usr/sbin/sshd.pam /usr/sbin/sshd && \
mkdir -p /var/run/sshd && \
rm -f /etc/ssh/ssh_host_*key*