2022-01-18 18:02:41 +00:00
|
|
|
FROM debian:10
|
|
|
|
|
2022-01-18 19:03:06 +00:00
|
|
|
WORKDIR /root
|
2022-01-18 18:02:41 +00:00
|
|
|
|
|
|
|
RUN addgroup eleve
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
ssh \
|
|
|
|
&& 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"]
|