a58c461932
Build and Push Docker Container / build-and-push (push) Successful in 8m44s
change host 0.0.0.0 to protonmail-bridge
42 lines
1003 B
Docker
42 lines
1003 B
Docker
FROM golang:trixie AS build
|
|
|
|
ARG VERSION
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
libsecret-1-dev \
|
|
libfido2-dev \
|
|
libcbor-dev \
|
|
pass
|
|
|
|
# Build
|
|
ADD https://github.com/ProtonMail/proton-bridge.git#${VERSION} /build/proton-bridge/
|
|
WORKDIR /build/proton-bridge/
|
|
RUN sed -i 's/127.0.0.1/protonmail-bridge/g' internal/constants/constants.go
|
|
RUN make build-nogui vault-editor
|
|
|
|
FROM debian:trixie
|
|
|
|
EXPOSE 1025/tcp
|
|
EXPOSE 1143/tcp
|
|
|
|
# Install dependencies and protonmail bridge
|
|
RUN apt-get update && apt-get install -y \
|
|
gnupg \
|
|
pass \
|
|
libsecret-1-0 \
|
|
libfido2-1 \
|
|
ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy bash scripts
|
|
COPY gpgparams entrypoint.sh /protonmail/
|
|
WORKDIR /protonmail/
|
|
|
|
# Copy protonmail
|
|
COPY --from=build /build/proton-bridge/bridge /usr/bin/
|
|
COPY --from=build /build/proton-bridge/proton-bridge /usr/bin/
|
|
COPY --from=build /build/proton-bridge/vault-editor /usr/bin/
|
|
|
|
ENTRYPOINT ["bash", "/protonmail/entrypoint.sh"]
|