0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

No longer need to add community repo to install shadow

This commit is contained in:
Adrian Dvergsdal 2024-07-06 12:11:02 +02:00
parent edfb7d06db
commit 0c08738a45
No known key found for this signature in database
GPG key ID: C1E9E2D9552A42D2

View file

@ -5,8 +5,7 @@ MAINTAINER Adrian Dvergsdal [atmoz.net]
# - Install packages
# - OpenSSH needs /var/run/sshd to run
# - Remove generic host keys, entrypoint generates unique keys
RUN echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk add --no-cache bash shadow@community openssh-server-pam openssh-sftp-server && \
RUN apk add --no-cache bash shadow openssh-server-pam openssh-sftp-server && \
ln -s /usr/sbin/sshd.pam /usr/sbin/sshd && \
mkdir -p /var/run/sshd && \
rm -f /etc/ssh/ssh_host_*key*