diff --git a/Dockerfile b/Dockerfile index 902d39a..a68f051 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,15 @@ #Dockerfile for a Postfix email relay service +# hadolint ignore=DL3007 FROM alpine:latest -MAINTAINER Juan Luis Baptiste juan.baptiste@gmail.com - -RUN apk update && \ +# hadolint ignore=DL3018, +RUN apk update --no-cache && \ apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \ postfix && \ - rm -rf /var/cache/apk/* && \ mkdir -p /var/log/supervisor/ /var/run/supervisor/ && \ sed -i -e 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.cf COPY run.sh / -RUN chmod +x /run.sh -RUN newaliases +RUN chmod +x /run.sh && newaliases EXPOSE 25 #ENTRYPOINT ["/run.sh"]