14 lines
312 B
Docker
14 lines
312 B
Docker
FROM alpine:3.20
|
|
|
|
RUN apk add --no-cache postfix ca-certificates
|
|
|
|
COPY main.cf /etc/postfix/main.cf
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh && \
|
|
mkdir -p /var/spool/postfix /etc/postfix
|
|
|
|
# Port 25 nur intern im Docker-Netz (kein -p beim Start!)
|
|
EXPOSE 25
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|