style
This commit is contained in:
@ -4,7 +4,7 @@ LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
|
||||
LABEL ImageName="registry.hottis.de/dockerized/cron-docker"
|
||||
|
||||
ARG SMARTHOST="172.16.11.15"
|
||||
ARG ADMINUSER="wolfgang.hottgenroth@icloud.com"
|
||||
ARG MAILDOMAIN="hottis.de"
|
||||
ARG APP_DIR="/opt/app"
|
||||
|
||||
RUN \
|
||||
@ -18,13 +18,11 @@ RUN \
|
||||
sed -i \
|
||||
-e "s/dc_eximconfig_configtype='local'/dc_eximconfig_configtype='satellite'/" \
|
||||
-e "s/dc_smarthost=''/dc_smarthost='${SMARTHOST}'/" \
|
||||
-e "s/dc_readhost=''/dc_readhost='${MAILDOMAIN}'/" \
|
||||
/etc/exim4/update-exim4.conf.conf && \
|
||||
env DEBIAN_FRONTEND=noninteractive dpkg-reconfigure -f debconf exim4-config && \
|
||||
mkdir -p ${APP_DIR} && \
|
||||
useradd -d ${APP_DIR} -u 1000 user && \
|
||||
echo "root: ${ADMINUSER}" >> /etc/aliases && \
|
||||
echo "user: ${ADMINUSER}" >> /etc/aliases && \
|
||||
newaliases
|
||||
useradd -d ${APP_DIR} -u 1000 user
|
||||
|
||||
COPY crontab /etc/
|
||||
COPY *.py ${APP_DIR}/
|
||||
|
Reference in New Issue
Block a user