From dbf81b43a8bb090d7662963d3ec08fdd4763b578 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 11 Mar 2026 15:48:55 +0100 Subject: [PATCH] make image smaller --- build/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 1f123f8..dff44cc 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -2,12 +2,13 @@ FROM golang:trixie AS build ARG VERSION -RUN apt-get update && apt-get install -y \ +RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ libsecret-1-dev \ libfido2-dev \ libcbor-dev \ - pass + pass \ + && rm -rf /var/lib/apt/lists/* # Build ADD https://github.com/ProtonMail/proton-bridge.git#${VERSION} /build/proton-bridge/ @@ -15,13 +16,13 @@ WORKDIR /build/proton-bridge/ RUN sed -i 's/127.0.0.1/0.0.0.0/g' internal/constants/constants.go RUN make build-nogui vault-editor -FROM debian:trixie +FROM debian:trixie-slim EXPOSE 1025/tcp EXPOSE 1143/tcp # Install dependencies and protonmail bridge -RUN apt-get update && apt-get install -y \ +RUN apt-get update && apt-get install -y --no-install-recommends \ gnupg \ pass \ libsecret-1-0 \