From 564264dbbe32469c371f50005d50b6eaac1779ec Mon Sep 17 00:00:00 2001 From: jblu Date: Wed, 8 Apr 2026 16:59:29 -0500 Subject: [PATCH] fixed entrypoint and changed to not install cronie --- Dockerfile | 2 +- entrypoint.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fa6627a..0d5af90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM alpine:latest COPY . opt -RUN apk add --no-cache cronie +# RUN apk add --no-cache cronie RUN chmod +x /opt/entrypoint.sh CMD ["/opt/entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 5c38794..12fd5a3 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,8 +2,8 @@ CRON_CONFIG_FILE="/etc/crontabs/root" -echo "${CRON} echo "Come in the water is fine!" > /opt/output.log" > $CRON_CONFIG_FILE -echo "${CRON} echo "Come in the water is fine!" > $CRON_CONFIG_FILE -echo "@reboot echo "Come in the water is fine!" > /opt/reboot.log" > $CRON_CONFIG_FILE +echo "${CRON} echo Come in the water is fine! > /opt/output.log" > $CRON_CONFIG_FILE +echo "${CRON} echo Come in the water is fine! > /opt/output.log" > $CRON_CONFIG_FILE +echo "@reboot echo Come in the water is fine! > /opt/reboot.log" > $CRON_CONFIG_FILE exec crond -f \ No newline at end of file