Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion rootfs/usr/bin/lnms
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion rootfs/usr/local/bin/artisan
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh

cd /opt/librenms || exit 1
yasu librenms:librenms php artisan "$@"
gosu librenms:librenms php artisan "$@"