Initial commit.

This commit is contained in:
michael 2020-05-21 13:52:09 -05:00
commit f5f2d79d3b
5 changed files with 98 additions and 0 deletions

31
Dockerfile Normal file
View file

@ -0,0 +1,31 @@
FROM golang:1.14-alpine as build
ENV LANG C.UTF-8
RUN apk add --no-cache \
gcc \
git \
libsecret-dev \
make \
musl-dev
WORKDIR /usr/src
RUN git clone https://github.com/ProtonMail/proton-bridge.git proton-bridge
WORKDIR /usr/src/proton-bridge
RUN make build-nogui
FROM alpine:edge
ENV LANG C.UTF-8
ENV SMTP_PORT 1025
ENV IMAP_PORT 1143
COPY --from=build /usr/src/proton-bridge/Desktop-Bridge /bin/protonmail-bridge
RUN apk add --no-cache \
libsecret \
pass \
socat \
su-exec
COPY entrypoint /bin/
RUN chmod +x /bin/entrypoint
COPY initproton /bin/
RUN chmod +x /bin/initproton
COPY gpgparams /tmp/
WORKDIR /var/lib/proton
ENTRYPOINT ["/bin/entrypoint"]
CMD ["/bin/initproton"]