ha-remote-vpn-addon/Dockerfile
2024-01-01 17:25:46 +01:00

8 lines
398 B
Docker

ARG BUILD_FROM
FROM $BUILD_FROM
RUN apk add rsyslog openvpn openssh haproxy curl rsync
RUN mkdir /root/.ssh && chmod 700 /root/.ssh && touch /root/.ssh/authorized_keys
RUN mkdir -p /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
COPY rootfs /