2020-12-08 20:08:12 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
|
2021-01-30 17:01:38 +00:00
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
COPY sshd_config /etc/ssh/
|
|
|
|
|
2020-12-08 20:08:12 +00:00
|
|
|
RUN apk add thttpd
|
|
|
|
|
2021-01-30 17:01:38 +00:00
|
|
|
RUN apk add openssh-server
|
|
|
|
RUN apk add openssh-sftp-server
|
|
|
|
RUN rm -rf /etc/ssh/ssh_host_*_key
|
|
|
|
RUN ssh-keygen -A
|
|
|
|
|
|
|
|
RUN echo "root:G/4YVyjqFxVud2It1HSJ2Z3Zobc0/JvnpHBSEmaY2e4" | chpasswd
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
2020-12-08 20:08:12 +00:00
|
|
|
|