30 lines
467 B
Docker
30 lines
467 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 ["netcat", "-lp", "5000", "-e", "/root/http/http_bash.sh"]
|
|
|
|
# Nginx conf
|
|
COPY ./default /etc/nginx/sites-enabled/default
|
|
|
|
# Entrypoint
|
|
COPY ./entrypoint.sh ./entrypoint.sh
|
|
ENTRYPOINT ["./entrypoint.sh"]
|