Skip to content

Commit c68a6bf

Browse files
authored
Merge pull request #559 from crazy-max/gosu
switch from yasu to gosu
2 parents df201a3 + cbc398d commit c68a6bf

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ ARG LIBRENMS_VERSION="26.3.1"
55
ARG ALPINE_VERSION="3.22"
66
ARG SYSLOGNG_VERSION="4.8.3-r1"
77

8-
FROM crazymax/yasu:latest AS yasu
8+
FROM tianon/gosu:latest AS gosu
9+
910
FROM crazymax/alpine-s6:${ALPINE_VERSION}-2.2.0.3
10-
COPY --from=yasu / /
11+
COPY --from=gosu /gosu /usr/local/bin/
1112
RUN apk --update --no-cache add \
1213
busybox-extras \
1314
acl \

rootfs/usr/bin/lnms

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
if [ "$(id -u -n)" = "librenms" -a "$(id -g -n)" = "librenms" ]; then
44
php -f /opt/librenms/lnms "$@"
55
else
6-
yasu librenms:librenms php -f /opt/librenms/lnms "$@"
6+
gosu librenms:librenms php -f /opt/librenms/lnms "$@"
77
fi

rootfs/usr/local/bin/artisan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22

33
cd /opt/librenms || exit 1
4-
yasu librenms:librenms php artisan "$@"
4+
gosu librenms:librenms php artisan "$@"

0 commit comments

Comments
 (0)