10 lines
243 B

  1. FROM alpine:3.7
  2. RUN apk add --no-cache openssh openssh-sftp-server
  3. RUN ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -N '' && \
  4. ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ''
  5. COPY src/ .
  6. CMD /usr/sbin/sshd -D -e