blob: d1f57d911ee9d1817af137c2c7693b3b28943775 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
ARG ALPINE_VERSION="3.21"
FROM alpine:${ALPINE_VERSION}
# install packages
RUN apk add --no-cache openrc udev-init-scripts-openrc
# setup openrc
COPY ./wait.initd /etc/init.d/wait
RUN sed -i 's/#rc_sys=""/rc_sys="docker"/' /etc/rc.conf && \
rc-update add wait
# remove last run
RUN rm -rf /run/openrc 2>/dev/null
RUN mkdir /run/openrc
RUN touch /run/openrc/softlevel
# start openrc
COPY ./entrypoint.sh /sbin/entrypoint
ENTRYPOINT ["/sbin/entrypoint"]
|