fix: trying out gosu.

This commit is contained in:
Robert Wlodarczyk 2025-01-11 13:19:37 -08:00
parent 8cd66168bd
commit 903fb6059c

View File

@ -46,6 +46,8 @@ RUN apk update --quiet && \
jq \
tini \
wget && \
apk add --quiet --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing \
gosu && \
rm /var/cache/apk/* && \
rm -rf /etc/periodic /etc/crontabs/root && \
adduser -S docker -D && \
@ -57,7 +59,7 @@ USER docker
COPY --from=builder /usr/bin/rq/rq /usr/local/bin
COPY entrypoint.sh /opt
ENTRYPOINT ["/sbin/tini", "--", "/opt/entrypoint.sh"]
ENTRYPOINT ["/usr/bin/gosu", "docker:docker", "/sbin/tini", "--", "/opt/entrypoint.sh"]
HEALTHCHECK --interval=5s --timeout=3s \
CMD ps aux | grep '[c]rond' || exit 1