This commit is contained in:
2021-02-22 11:19:58 +01:00
parent 58c1333570
commit 2c9d960896

View File

@ -5,7 +5,7 @@ LABEL ImageName="registry.hottis.de/dockerized/cron-docker"
ARG SMARTHOST="172.16.11.15" ARG SMARTHOST="172.16.11.15"
ARG ADMINUSER="wolfgang.hottgenroth@icloud.com" ARG ADMINUSER="wolfgang.hottgenroth@icloud.com"
ARG APP_DIR="/opt/tools" ARG APP_DIR="/opt/app"
RUN \ RUN \
apt update && \ apt update && \
@ -26,6 +26,9 @@ RUN \
echo "user: ${ADMINUSER}" >> /etc/aliases && \ echo "user: ${ADMINUSER}" >> /etc/aliases && \
newaliases newaliases
COPY crontab /etc/
COPY *.py ${APP_DIR}/
USER 1000:1000 USER 1000:1000
WORKDIR ${APP_DIR} WORKDIR ${APP_DIR}