2023-11-11 00:44:48 +00:00
|
|
|
FROM alpine
|
2023-12-30 20:23:30 +00:00
|
|
|
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
|
2023-11-11 00:44:48 +00:00
|
|
|
RUN sed -i 's/#rc_sys=""/rc_sys="docker"/' /etc/rc.conf && \
|
|
|
|
rc-update add wait && \
|
|
|
|
rc-update add inet2
|
|
|
|
|
2023-12-30 20:23:30 +00:00
|
|
|
RUN rm -rf /run/openrc 2>/dev/null
|
|
|
|
RUN mkdir /run/openrc
|
|
|
|
RUN touch /run/openrc/softlevel
|
2023-11-11 00:44:48 +00:00
|
|
|
|
2023-12-30 20:23:30 +00:00
|
|
|
COPY ./deployments/docker/entrypoint.sh /
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|