mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
Fixing default group no longer needed in alpine
This commit is contained in:
parent
593f67013e
commit
3ad35571d5
1 changed files with 0 additions and 2 deletions
|
@ -3,12 +3,10 @@ MAINTAINER Adrian Dvergsdal [atmoz.net]
|
||||||
|
|
||||||
# Steps done in one RUN layer:
|
# Steps done in one RUN layer:
|
||||||
# - Install packages
|
# - Install packages
|
||||||
# - Fix default group (1000 does not exist)
|
|
||||||
# - 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 echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
|
||||||
apk add --no-cache bash shadow@community openssh openssh-sftp-server && \
|
apk add --no-cache bash shadow@community openssh openssh-sftp-server && \
|
||||||
sed -i 's/GROUP=1000/GROUP=100/' /etc/default/useradd && \
|
|
||||||
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