2015-04-20 07:07:23 +02:00
|
|
|
#Dockerfile for a Postfix email relay service
|
2024-02-07 21:23:56 +01:00
|
|
|
FROM alpine:20231219
|
2023-10-30 23:59:52 +01:00
|
|
|
|
|
|
|
COPY run.sh /
|
|
|
|
|
|
|
|
# hadolint ignore=DL3018
|
2023-10-30 23:58:51 +01:00
|
|
|
RUN apk update --no-cache && \
|
2023-11-03 11:30:43 +01:00
|
|
|
apk add --no-cache bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx postfix-pcre \
|
2021-04-27 23:44:39 +02:00
|
|
|
postfix && \
|
2020-03-23 05:17:24 +01:00
|
|
|
mkdir -p /var/log/supervisor/ /var/run/supervisor/ && \
|
2023-10-30 23:59:52 +01:00
|
|
|
chmod +x /run.sh && \
|
|
|
|
newaliases
|
2015-04-20 07:07:23 +02:00
|
|
|
|
|
|
|
EXPOSE 25
|
|
|
|
#ENTRYPOINT ["/run.sh"]
|
2019-11-29 11:44:46 +01:00
|
|
|
CMD ["/run.sh"]
|