ha-remote-vpn/Dockerfile

10 lines
489 B
Text
Raw Permalink Normal View History

FROM alpine
RUN apk add rsyslog openvpn openssh haproxy curl
RUN mkdir /root/.ssh && chmod 700 /root/.ssh && touch /root/.ssh/authorized_keys
RUN mkdir /etc/ssh/sshd_config.d/ /etc/rsyslog.d/ /var/lib/haproxy/dev
RUN echo 'Include /etc/ssh/sshd_config.d/*.conf' >> /etc/ssh/sshd_config
RUN echo '$IncludeConfig /etc/rsyslog.d/*.conf' >> /etc/rsyslog.conf
2023-01-07 14:30:29 +01:00
COPY entrypoint.sh /usr/local/sbin/entrypoint.sh
RUN chmod 755 /usr/local/sbin/entrypoint.sh
ENTRYPOINT /usr/local/sbin/entrypoint.sh