1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-07-17 16:45:25 +00:00

Merge pull request #559 from crazy-max/gosu

switch from yasu to gosu
This commit is contained in:
CrazyMax 2026-03-28 18:08:51 +01:00 committed by GitHub
commit c68a6bfd4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 "$@"