Skip to content

Commit

Permalink
fix: alter RUNITDIR for alpine 3.21 #152
Browse files Browse the repository at this point in the history
  • Loading branch information
q0rban committed Dec 10, 2024
1 parent 7b8b80a commit 4272766
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/Dockerfile.apk.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ ENV RUNITDIR=/sbin

COPY runit-init.sh /runit-init.sh

# Alpine 3.21.* installs runit into a different directory. Test if this is 3.21
# and then modify the above script appropriately.
RUN source /etc/os-release && \
test "${VERSION_ID#3.21.}" = "$VERSION_ID" || \
sed -e 's@$RUNITDIR@/usr&@g' -i /runit-init.sh

CMD ["/runit-init.sh"]

0 comments on commit 4272766

Please sign in to comment.