FROM alpine RUN apk add --no-cache openrc udev-init-scripts-openrc wireguard-tools bind-tools bird RUN mkdir -p /var/lib/inet2 COPY ./bin /usr/local/bin COPY ./lib /var/lib/inet2 COPY ./deployments/openrc/inet2.initd /etc/init.d/inet2 COPY ./deployments/docker/wait.initd /etc/init.d/wait RUN sed -i 's/#rc_sys=""/rc_sys="docker"/' /etc/rc.conf && \ rc-update add wait && \ rc-update add inet2 RUN rm -rf /run/openrc 2>/dev/null RUN mkdir /run/openrc RUN touch /run/openrc/softlevel COPY ./deployments/docker/entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"]