massive image size reduction #2
24
Dockerfile
24
Dockerfile
@ -1,13 +1,22 @@
|
|||||||
#Dockerfile for a Postfix email relay service
|
FROM alpine:3 as bridgebuild
|
||||||
FROM alpine:3
|
|
||||||
#MAINTAINER Juan Luis Baptiste juan.baptiste@gmail.com
|
#MAINTAINER Juan Luis Baptiste juan.baptiste@gmail.com
|
||||||
MAINTAINER finn git@hot.oily.dad
|
MAINTAINER finn git@hot.oily.dad
|
||||||
|
|
||||||
|
|
||||||
|
# ProtonMailBridge Build
|
||||||
|
RUN apk add make go pkgconfig libsecret libsecret-dev git bash
|
||||||
|
WORKDIR /
|
||||||
|
RUN git clone https://github.com/ProtonMail/proton-bridge.git pmb
|
||||||
|
WORKDIR /pmb
|
||||||
|
RUN echo "BUILDING BRIDGE"
|
||||||
|
RUN make build-nogui
|
||||||
|
|
||||||
|
#Postfix email relay service
|
||||||
|
FROM alpine:3
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
|
apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
|
||||||
postfix && \
|
postfix && \
|
||||||
apk add make go pkgconfig libsecret libsecret-dev git gpg gpg-agent pass && \
|
apk add libsecret gpg gpg-agent pass msmtp && \
|
||||||
apk add msmtp && \
|
|
||||||
rm -rf /var/cache/apk/* && \
|
rm -rf /var/cache/apk/* && \
|
||||||
mkdir -p /var/log/supervisor/ /var/run/supervisor/ && \
|
mkdir -p /var/log/supervisor/ /var/run/supervisor/ && \
|
||||||
sed -i -e 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.cf
|
sed -i -e 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.cf
|
||||||
@ -27,12 +36,9 @@ COPY run.sh /
|
|||||||
RUN chmod +x /run.sh
|
RUN chmod +x /run.sh
|
||||||
RUN newaliases
|
RUN newaliases
|
||||||
|
|
||||||
# ProtonMailBridge
|
# pmb
|
||||||
RUN git clone https://github.com/ProtonMail/proton-bridge.git pmb
|
COPY --from=bridgebuild /pmb /pmb
|
||||||
WORKDIR pmb
|
WORKDIR pmb
|
||||||
RUN echo "BUILDING BRIDGE"
|
|
||||||
RUN make build-nogui
|
|
||||||
RUN rm -rf /root/.cache && rm -rf /root/go
|
|
||||||
|
|
||||||
EXPOSE 25
|
EXPOSE 25
|
||||||
#ENTRYPOINT ["/run.sh"]
|
#ENTRYPOINT ["/run.sh"]
|
||||||
|
Loading…
Reference in New Issue
Block a user