fixed entrypoint and changed to not install cronie
ci / docker (push) Successful in 29s

This commit is contained in:
2026-04-08 16:59:29 -05:00
parent 1d87e47295
commit 564264dbbe
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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"]
+3 -3
View File
@@ -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