Skip to content

Commit

Permalink
fixup! Fix alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Dec 6, 2024
1 parent 63e4b51 commit 8e34295
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ RUN set -eux \
/etc/init.d/modules \
/etc/init.d/modules-load \
/etc/init.d/modloop \
&& if [ "$VERSION_ID" = "3.21*" ]; then \
OPENRC_RUN="/usr/libexec/rc/sh/openrc-run.sh"; \
INIT="/usr/libexec/rc/sh/init.sh"; \
else \
&& case $VERSION_ID in \
3.21*) \
OPENRC_RUN="/usr/libexec/rc/sh/openrc-run.sh"; \
INIT="/usr/libexec/rc/sh/init.sh"; \
;; \
*) \
OPENRC_RUN="/lib/rc/sh/openrc-run.sh"; \
INIT="/lib/rc/sh/init.sh"; \
fi \
;; \
esac \
&& sed -i 's/cgroup_add_service /# cgroup_add_service /g' "$OPENRC_RUN" \
&& sed -i 's/VSERVER/DOCKER/Ig' "$INIT"

Expand Down

0 comments on commit 8e34295

Please sign in to comment.