Compare commits
No commits in common. "2908b8d16a62904c05ff2702751d90835eb33461" and "e118eb8a990f2e211f0fad6fcb03afc4b9a2da09" have entirely different histories.
2908b8d16a
...
e118eb8a99
24
Dockerfile
24
Dockerfile
@ -1,22 +1,13 @@
|
|||||||
FROM alpine:3 as bridgebuild
|
#Dockerfile for a Postfix email relay service
|
||||||
|
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 libsecret gpg gpg-agent pass msmtp && \
|
apk add make go pkgconfig libsecret libsecret-dev git gpg gpg-agent pass && \
|
||||||
|
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
|
||||||
@ -36,9 +27,12 @@ COPY run.sh /
|
|||||||
RUN chmod +x /run.sh
|
RUN chmod +x /run.sh
|
||||||
RUN newaliases
|
RUN newaliases
|
||||||
|
|
||||||
# pmb
|
# ProtonMailBridge
|
||||||
COPY --from=bridgebuild /pmb /pmb
|
RUN git clone https://github.com/ProtonMail/proton-bridge.git 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