mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2025-12-06 08:27:08 +00:00
speed up build
This commit is contained in:
parent
4b26a258e6
commit
41dead5f1f
@ -1,15 +1,15 @@
|
|||||||
FROM debian:sid-slim AS build
|
FROM golang:bookworm AS build
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt-get update && apt-get install -y git golang build-essential libsecret-1-dev
|
RUN apt-get update && apt-get install -y libsecret-1-dev
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
WORKDIR /build/
|
WORKDIR /build/
|
||||||
COPY build.sh VERSION /build/
|
COPY build.sh VERSION /build/
|
||||||
RUN bash build.sh
|
RUN bash build.sh
|
||||||
|
|
||||||
FROM debian:sid-slim
|
FROM debian:bookworm-slim
|
||||||
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
|
LABEL maintainer="Simon Felding <sife@adm.ku.dk>"
|
||||||
|
|
||||||
EXPOSE 25/tcp
|
EXPOSE 25/tcp
|
||||||
EXPOSE 143/tcp
|
EXPOSE 143/tcp
|
||||||
@ -25,5 +25,6 @@ COPY gpgparams entrypoint.sh /protonmail/
|
|||||||
# Copy protonmail
|
# Copy protonmail
|
||||||
COPY --from=build /build/proton-bridge/bridge /protonmail/
|
COPY --from=build /build/proton-bridge/bridge /protonmail/
|
||||||
COPY --from=build /build/proton-bridge/proton-bridge /protonmail/
|
COPY --from=build /build/proton-bridge/proton-bridge /protonmail/
|
||||||
|
COPY --from=build /build/proton-bridge/vault-editor /protonmail/
|
||||||
|
|
||||||
ENTRYPOINT ["bash", "/protonmail/entrypoint.sh"]
|
ENTRYPOINT ["bash", "/protonmail/entrypoint.sh"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user