speed up build
This commit is contained in:
parent
4b26a258e6
commit
41dead5f1f
1 changed files with 5 additions and 4 deletions
|
|
@ -1,15 +1,15 @@
|
|||
FROM debian:sid-slim AS build
|
||||
FROM golang:bookworm AS build
|
||||
|
||||
# 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
|
||||
WORKDIR /build/
|
||||
COPY build.sh VERSION /build/
|
||||
RUN bash build.sh
|
||||
|
||||
FROM debian:sid-slim
|
||||
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
|
||||
FROM debian:bookworm-slim
|
||||
LABEL maintainer="Simon Felding <sife@adm.ku.dk>"
|
||||
|
||||
EXPOSE 25/tcp
|
||||
EXPOSE 143/tcp
|
||||
|
|
@ -25,5 +25,6 @@ COPY gpgparams entrypoint.sh /protonmail/
|
|||
# Copy protonmail
|
||||
COPY --from=build /build/proton-bridge/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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue