forked from loganmarchione/docker-postfixrelay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 745 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM alpine:3.19
ARG BUILD_DATE
LABEL \
maintainer="Logan Marchione <logan@loganmarchione.com>" \
org.opencontainers.image.authors="Logan Marchione <logan@loganmarchione.com>" \
org.opencontainers.image.title="docker-postfixrelay" \
org.opencontainers.image.description="Runs Postfix (as a relay) in Docker" \
org.opencontainers.image.created=$BUILD_DATE
RUN apk add --no-cache --update \
bash \
ca-certificates \
cyrus-sasl-login \
dumb-init \
postfix \
postfix-doc \
tzdata
EXPOSE 25
VOLUME [ "/var/spool/postfix" ]
COPY ./entrypoint.sh /
COPY VERSION /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/entrypoint.sh"]
HEALTHCHECK CMD netstat -ltn | grep -c ":25" || exit 1