2023-01-08 01:59:02 +01:00
|
|
|
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
|