docker-ssh-jumphost/Dockerfile

18 lines
395 B
Docker
Raw Permalink Normal View History

2023-01-28 11:49:03 +00:00
FROM alpine
2024-09-17 13:06:12 +00:00
ARG VERSION=1.2.1
2024-09-17 12:59:08 +00:00
2023-01-28 11:49:03 +00:00
RUN apk add --update openssh
2023-10-11 09:35:36 +00:00
COPY sshd_config /etc/ssh/sshd_jumpuser_config
RUN echo "Include /etc/ssh/sshd_jumpuser_config" >> /etc/ssh/sshd_config
2023-01-28 11:49:03 +00:00
2023-10-11 09:35:36 +00:00
RUN adduser -D -s /bin/sh -H jumpuser
RUN passwd -u -d jumpuser
2023-01-28 11:49:03 +00:00
EXPOSE 2222
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]