mirror of
https://github.com/atmoz/sftp.git
synced 2024-12-22 13:14:42 -05:00
Install upgrades
This commit is contained in:
parent
1929ae5c49
commit
c8e0a481d4
2 changed files with 6 additions and 3 deletions
|
@ -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 && \
|
||||
|
|
|
@ -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*
|
||||
|
|
Loading…
Reference in a new issue