mirror of
https://github.com/librenms/docker.git
synced 2026-07-17 16:45:25 +00:00
commit
c68a6bfd4d
3 changed files with 5 additions and 4 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
cd /opt/librenms || exit 1
|
||||
yasu librenms:librenms php artisan "$@"
|
||||
gosu librenms:librenms php artisan "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue