adjust permissions in Dockerfile

This commit is contained in:
2021-02-22 19:15:38 +01:00
parent 4b8c62ab94
commit 226c8866a3
3 changed files with 9 additions and 4 deletions

View File

@ -28,6 +28,11 @@ COPY crontab /etc/
COPY *.py ${APP_DIR}/ COPY *.py ${APP_DIR}/
COPY *.tmpl ${APP_DIR}/ COPY *.tmpl ${APP_DIR}/
RUN \
chmod 644 /etc/crontab && \
chmod 755 ${APP_DIR}/*.py && \
chmod 644 ${APP_DIR}/*.tmpl
# USER 1000:1000 # USER 1000:1000
WORKDIR ${APP_DIR} WORKDIR ${APP_DIR}

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
IMAGE_NAME="registry.hottis.de/hv/hv-cron" IMAGE_NAME="local-hv-cron"
VERSION=0.0.1 VERSION=0.0.1
docker build -t ${IMAGE_NAME}:${VERSION} . docker build -t ${IMAGE_NAME}:${VERSION} .
docker push ${IMAGE_NAME}:${VERSION} # docker push ${IMAGE_NAME}:${VERSION}

View File

@ -1,6 +1,6 @@
MAILTO = wolfgang.hottgenroth@icloud.com MAILTO = wolfgang.hottgenroth@icloud.com
CONTENT_TYPE = "text/html" CONTENT_TYPE = "text/html"
0 13 1 * * user /opt/app/monatliche-forderung-eintragen.py * * * * * user /opt/app/monatliche-forderung-eintragen.py
0 4 * * * user /opt/app/monatliche-forderung-ueberwachen.py * * * * * user /opt/app/monatliche-forderung-ueberwachen.py