1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-07-18 00:55:20 +00:00

switch from yasu to gosu

This commit is contained in:
CrazyMax 2026-03-28 17:11:14 +01:00
parent df201a343d
commit cbc398d017
No known key found for this signature in database
GPG key ID: ADE44D8C9D44FBE4
3 changed files with 5 additions and 4 deletions

View file

@ -5,9 +5,10 @@ ARG LIBRENMS_VERSION="26.3.1"
ARG ALPINE_VERSION="3.22"
ARG SYSLOGNG_VERSION="4.8.3-r1"
FROM crazymax/yasu:latest AS yasu
FROM tianon/gosu:latest AS gosu
FROM crazymax/alpine-s6:${ALPINE_VERSION}-2.2.0.3
COPY --from=yasu / /
COPY --from=gosu /gosu /usr/local/bin/
RUN apk --update --no-cache add \
busybox-extras \
acl \

View file

@ -3,5 +3,5 @@
if [ "$(id -u -n)" = "librenms" -a "$(id -g -n)" = "librenms" ]; then
php -f /opt/librenms/lnms "$@"
else
yasu librenms:librenms php -f /opt/librenms/lnms "$@"
gosu librenms:librenms php -f /opt/librenms/lnms "$@"
fi

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh
cd /opt/librenms || exit 1
yasu librenms:librenms php artisan "$@"
gosu librenms:librenms php artisan "$@"