ci: fix linter errors

This commit is contained in:
Michael Grote 2023-10-30 23:59:52 +01:00
parent 9e49aeb2ef
commit 09f306c193

View file

@ -1,15 +1,17 @@
#Dockerfile for a Postfix email relay service
# hadolint ignore=DL3007
FROM alpine:latest
# hadolint ignore=DL3018,
RUN apk update --no-cache && \
apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
postfix && \
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 && newaliases
# hadolint ignore=DL3018
RUN apk update --no-cache && \
apk add --no-cache bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
postfix && \
mkdir -p /var/log/supervisor/ /var/run/supervisor/ && \
sed -i -e 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.c && \
chmod +x /run.sh && \
newaliases
EXPOSE 25
#ENTRYPOINT ["/run.sh"]