diff --git a/Dockerfile b/Dockerfile index 90d4ff8..e4ebcff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,11 @@ COPY crontab /etc/ COPY *.py ${APP_DIR}/ COPY *.tmpl ${APP_DIR}/ +RUN \ + chmod 644 /etc/crontab && \ + chmod 755 ${APP_DIR}/*.py && \ + chmod 644 ${APP_DIR}/*.tmpl + # USER 1000:1000 WORKDIR ${APP_DIR} diff --git a/build.sh b/build.sh index 4e218ce..667ce7b 100755 --- a/build.sh +++ b/build.sh @@ -1,8 +1,8 @@ #!/bin/bash -IMAGE_NAME="registry.hottis.de/hv/hv-cron" +IMAGE_NAME="local-hv-cron" VERSION=0.0.1 docker build -t ${IMAGE_NAME}:${VERSION} . -docker push ${IMAGE_NAME}:${VERSION} +# docker push ${IMAGE_NAME}:${VERSION} diff --git a/crontab b/crontab index 8531dae..c9d4562 100644 --- a/crontab +++ b/crontab @@ -1,6 +1,6 @@ MAILTO = wolfgang.hottgenroth@icloud.com CONTENT_TYPE = "text/html" -0 13 1 * * user /opt/app/monatliche-forderung-eintragen.py -0 4 * * * user /opt/app/monatliche-forderung-ueberwachen.py +* * * * * user /opt/app/monatliche-forderung-eintragen.py +* * * * * user /opt/app/monatliche-forderung-ueberwachen.py