adjust permissions in Dockerfile
This commit is contained in:
@ -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}
|
||||
|
||||
|
4
build.sh
4
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}
|
||||
|
||||
|
4
crontab
4
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
|
||||
|
||||
|
Reference in New Issue
Block a user