sshd/Dockerfile

18 lines
306 B
Docker

FROM registry.sindominio.net/debian
RUN apt-get update && apt-get install -y openssh-server
RUN mkdir /var/run/sshd
COPY sshd_config /etc/ssh/sshd_config
ADD entrypoint.sh /
ADD start.sh /
VOLUME /home/user/httpdocs
EXPOSE 22
ENTRYPOINT [ "/bin/sh", "/entrypoint.sh" ]
CMD ["/bin/sh", "/start.sh"]