update to multiarch
This commit is contained in:
33
Dockerfile
Normal file
33
Dockerfile
Normal file
@@ -0,0 +1,33 @@
|
||||
FROM alpine:3.20
|
||||
|
||||
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
|
Reference in New Issue
Block a user