ssh-treasure-hunt/Dockerfile
2022-01-20 13:50:31 +01:00

27 lines
392 B
Docker

FROM debian:10
WORKDIR /root
RUN addgroup eleve
RUN apt-get update && apt-get install -y \
nano \
netcat \
nginx \
ssh \
vim \
&& rm -rf /var/lib/apt/lists/*
ENV TZ=Europe/Paris
#CMD ["sh", "-c", "echo lol"]
# SSH server
RUN mkdir /run/sshd
CMD ["/usr/sbin/sshd", "-E", "/dev/stderr", "-D"]
# Entrypoint
COPY ./entrypoint.sh ./entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]