File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -105,4 +105,4 @@ dockers:
105105 - " --label=org.opencontainers.image.version={{.Version}}"
106106 - " --platform=linux/amd64"
107107 extra_files :
108- - dockerfiles/entrypoint .sh
108+ - dockerfiles/wrapper .sh
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ RUN apk add --no-cache curl shadow && \
1616 curl -L https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-amd64 -o /usr/local/lib/docker/cli-plugins/docker-buildx && \
1717 chmod a+x /usr/local/lib/docker/cli-plugins/docker-buildx
1818
19- COPY dockerfiles/entrypoint .sh /root/entrypoint.sh
19+ COPY dockerfiles/wrapper .sh /usr/bin/ok
2020
2121WORKDIR /app
2222COPY ok /bin
23- ENTRYPOINT ["/root/entrypoint.sh"]
Original file line number Diff line number Diff line change @@ -6,8 +6,9 @@ PGID=${PGID:-1000}
66groupmod -o -g " ${PGID} " outblocks > /dev/null
77usermod -o -u " ${PUID} " outblocks > /dev/null
88
9- if [ " ${RUN_AS_ROOT:- 0} " = " 1" ]; then
10- exec " $@ "
11- else
12- exec gosu outblocks " $@ "
9+ if [ " ${RUN_AS_ROOT:- 0} " = " 1" ] || [ " $( id -u || true) " != " 0" ]; then
10+ exec ok " $@ "
11+ return
1312fi
13+
14+ exec gosu outblocks /bin/ok " $@ "
You can’t perform that action at this time.
0 commit comments