protonmail-bridge/Dockerfile
Michael Gibson f2c2a5d5ba
All checks were successful
continuous-integration/drone/push Build is passing
Moved gpgparams to initproton.
2020-05-22 11:50:51 -05:00

30 lines
702 B
Docker

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
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
WORKDIR /var/lib/proton
EXPOSE 25/tcp
EXPOSE 143/tcp
ENTRYPOINT ["/bin/entrypoint"]
CMD ["/bin/initproton"]