Another attempt

master
Meliurwen 4 years ago
parent 772e57021f
commit d55c3ff076
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 2
      Dockerfile

@ -5,7 +5,7 @@ FROM alpine:latest
# - Fix default group (1000 does not exist) # - 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 apk add --no-cache bash openssh openssh-sftp-server && \ RUN apk add --no-cache bash shadow@community openssh openssh-sftp-server && \
sed -i 's/GROUP=1000/GROUP=100/' /etc/default/useradd && \ 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…
Cancel
Save