mirror of
https://github.com/optim-enterprises-bv/Mailu.git
synced 2025-11-01 18:47:52 +00:00
32 lines
723 B
Docker
32 lines
723 B
Docker
<<<<<<< HEAD
|
|
# syntax=docker/dockerfile-upstream:1.4.3
|
|
=======
|
|
ARG DISTRO=alpine:3.10
|
|
FROM $DISTRO
|
|
# python3 shared with most images
|
|
RUN apk add --no-cache \
|
|
python3 py3-pip git bash py3-multidict py3-yarl \
|
|
&& pip3 install --upgrade pip
|
|
>>>>>>> 09ee3ce9 (Install py3-multidict from repository before installing socrate to avoid the need of gcc during build)
|
|
|
|
# postfix image
|
|
FROM base
|
|
|
|
ARG VERSION=local
|
|
LABEL version=$VERSION
|
|
|
|
RUN set -euxo pipefail \
|
|
; apk add --no-cache cyrus-sasl-login postfix postfix-pcre logrotate
|
|
|
|
COPY conf/ /conf/
|
|
COPY start.py /
|
|
|
|
RUN echo $VERSION >/version
|
|
|
|
#EXPOSE 25/tcp 10025/tcp
|
|
HEALTHCHECK --start-period=30s CMD ! /usr/libexec/postfix/master -t
|
|
|
|
VOLUME ["/queue"]
|
|
|
|
CMD /start.py
|