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:
parent
edfb7d06db
commit
0c08738a45
1 changed files with 1 additions and 2 deletions
|
@ -5,8 +5,7 @@ MAINTAINER Adrian Dvergsdal [atmoz.net]
|
||||||
# - Install packages
|
# - Install packages
|
||||||
# - OpenSSH needs /var/run/sshd to run
|
# - OpenSSH needs /var/run/sshd to run
|
||||||
# - Remove generic host keys, entrypoint generates unique keys
|
# - Remove generic host keys, entrypoint generates unique keys
|
||||||
RUN echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
|
RUN apk add --no-cache bash shadow openssh-server-pam openssh-sftp-server && \
|
||||||
apk add --no-cache bash shadow@community openssh-server-pam openssh-sftp-server && \
|
|
||||||
ln -s /usr/sbin/sshd.pam /usr/sbin/sshd && \
|
ln -s /usr/sbin/sshd.pam /usr/sbin/sshd && \
|
||||||
mkdir -p /var/run/sshd && \
|
mkdir -p /var/run/sshd && \
|
||||||
rm -f /etc/ssh/ssh_host_*key*
|
rm -f /etc/ssh/ssh_host_*key*
|
||||||
|
|
Loading…
Reference in a new issue