123456789101112131415161718 |
- FROM alpine:3.9
- RUN apk add --no-cache openssh-server
- ENV SSHD_HOST_KEYS_DIR /etc/ssh/host_keys
- VOLUME $SSHD_HOST_KEYS_DIR
- COPY sshd_config /etc/ssh/sshd_config
- # comma-separated list of usernames
- ENV USERS ""
- EXPOSE 22/tcp
- COPY entrypoint.sh /
- ENTRYPOINT ["/entrypoint.sh"]
- CMD ["/usr/sbin/sshd", "-D", "-e"]
|