This commit is contained in:
@ -4,6 +4,7 @@ RUN apk add --update --no-cache \
|
||||
bash \
|
||||
nano \
|
||||
curl \
|
||||
bind-tools \
|
||||
postfix \
|
||||
postfix-ldap \
|
||||
postfix-pcre \
|
||||
@ -12,12 +13,19 @@ RUN apk add --update --no-cache \
|
||||
|
||||
RUN update-ca-certificates && \
|
||||
mkdir /cert && \
|
||||
chown 100:101 /cert
|
||||
mkdir /dh && \
|
||||
chown 100:101 /cert && \
|
||||
chown 100:101 /dh
|
||||
|
||||
COPY --chown=root:root start.sh config /
|
||||
COPY --chown=root:root start.sh /
|
||||
COPY --chown=root:root config/ /config/
|
||||
COPY --chown=root:root templates/ /templates/
|
||||
|
||||
RUN chown -R 100:101 /var/lib/postfix && \
|
||||
chmod 750 /var/lib/postfix
|
||||
|
||||
VOLUME /config
|
||||
VOLUME /cert
|
||||
VOLUME /dh
|
||||
VOLUME /var/spool/postfix
|
||||
|
||||
EXPOSE 10025/tcp
|
||||
|
Reference in New Issue
Block a user