Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RUN apk update &&
- apk add bash git openssh rsync augeas &&
- deluser $(getent passwd 33 | cut -d: -f1) &&
- delgroup $(getent group 33 | cut -d: -f1) 2>/dev/null || true &&
- mkdir -p ~root/.ssh /etc/authorized_keys && chmod 700 ~root/.ssh/ &&
- augtool 'set /files/etc/ssh/sshd_config/AuthorizedKeysFile ".ssh/authorized_keys /etc/authorized_keys/%u"' &&
- echo -e "Port 22n" >> /etc/ssh/sshd_config &&
- cp -a /etc/ssh /etc/ssh.cache &&
- rm -rf /var/cache/apk/*
- EXPOSE 22
- COPY docker-entrypoint.sh /docker-entrypoint.sh
Add Comment
Please, Sign In to add comment