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 COPY entrypoint.sh /usr/local/sbin/entrypoint.sh RUN chmod 755 /usr/local/sbin/entrypoint.sh ENTRYPOINT /usr/local/sbin/entrypoint.sh