Dockerfile 323 B

123456789101112131415161718
  1. FROM alpine:3.8
  2. RUN apk add --no-cache rsync openssh-server
  3. ENV SSHD_HOST_KEYS_DIR /etc/ssh/host_keys
  4. VOLUME $SSHD_HOST_KEYS_DIR
  5. COPY sshd_config /etc/ssh/sshd_config
  6. # comma-separated list of usernames
  7. ENV USERS ""
  8. EXPOSE 22/tcp
  9. COPY entrypoint.sh /
  10. ENTRYPOINT ["/entrypoint.sh"]
  11. CMD ["/usr/sbin/sshd", "-D", "-e"]