mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2025-04-13 09:49:59 +02:00
fix: trying out gosu.
This commit is contained in:
parent
8cd66168bd
commit
903fb6059c
@ -46,6 +46,8 @@ RUN apk update --quiet && \
|
|||||||
jq \
|
jq \
|
||||||
tini \
|
tini \
|
||||||
wget && \
|
wget && \
|
||||||
|
apk add --quiet --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing \
|
||||||
|
gosu && \
|
||||||
rm /var/cache/apk/* && \
|
rm /var/cache/apk/* && \
|
||||||
rm -rf /etc/periodic /etc/crontabs/root && \
|
rm -rf /etc/periodic /etc/crontabs/root && \
|
||||||
adduser -S docker -D && \
|
adduser -S docker -D && \
|
||||||
@ -57,7 +59,7 @@ USER docker
|
|||||||
COPY --from=builder /usr/bin/rq/rq /usr/local/bin
|
COPY --from=builder /usr/bin/rq/rq /usr/local/bin
|
||||||
COPY entrypoint.sh /opt
|
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 \
|
HEALTHCHECK --interval=5s --timeout=3s \
|
||||||
CMD ps aux | grep '[c]rond' || exit 1
|
CMD ps aux | grep '[c]rond' || exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user