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
|
2024-11-17 04:01:08 +00:00
|
|
|
RUN mkdir -p /var/share/inet2
|
2023-12-30 20:23:30 +00:00
|
|
|
COPY ./bin /usr/local/bin
|
2024-11-17 04:01:08 +00:00
|
|
|
COPY ./share /usr/local/share/inet2
|
2023-12-30 20:23:30 +00:00
|
|
|
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"]
|