FROM alpine:3.7

RUN apk add --no-cache openssh openssh-sftp-server

RUN ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -N '' && \
    ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ''

COPY src/ .

CMD /usr/sbin/sshd -D -e