Run script in conatiner as unrivileged user.
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 35s

This commit is contained in:
2026-04-26 16:57:28 +02:00
parent ca5fbceac3
commit 2cc6bad069
3 changed files with 29 additions and 2 deletions

View File

@@ -2,6 +2,8 @@ FROM alpine:latest
ENV TZ="UTC"
ENV SCHEDULE="* * * * *"
ENV PUID=1000
ENV PGID=1000
## Configure runtime variables for nsupdate
ENV NSUPDATE_CONFD_DIR="/config"
@@ -24,6 +26,9 @@ RUN chmod +x /usr/local/bin/nsupdate.sh
COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
# Create volume directories (ownership will be set at runtime)
RUN mkdir -p /config /log
## Start crond
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
CMD [ "crond", "-f" ]