commit 1589d87b38ac9f7d49af37b6a9dfea3db305e062 Author: Wolfgang Hottgenroth Date: Mon Feb 22 00:10:20 2021 +0100 initial diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e9b8a76 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +FROM debian:buster + +LABEL Maintainer="Wolfgang Hottgenroth " +LABEL ImageName="registry.hottis.de/dockerized/cron-docker" + +ARG SMARTHOST="172.16.11.15" +ARG ADMINUSER="wolfgang.hottgenroth@icloud.com" +ARG APP_DIR="/opt/tools" + +RUN \ + apt update && \ + apt install -y cron && \ + apt install -y exim4 && \ + sed -i \ + -e "s/dc_eximconfig_configtype='local'/dc_eximconfig_configtype='satellite'/" \ + -e "s/dc_smarthost=''/dc_smarthost='${SMARTHOST}'/" \ + /etc/exim4/update-exim4.conf.conf && \ + env DEBIAN_FRONTEND=noninteractive dpkg-reconfigure -f debconf exim4-config && \ + echo "root: ${ADMINUSER}" >> /etc/aliases && \ + newaliases && \ + mkdir -p ${APP_DIR} && \ + useradd -d ${APP_DIR} -u 1000 user + +USER 1000:1000 +WORKDIR ${APP_DIR} +VOLUME /etc/cron.d + + + + + +