make image smaller

This commit is contained in:
GitHub Actions
2026-03-11 15:48:55 +01:00
parent c62fe08152
commit dbf81b43a8
+5 -4
View File
@@ -2,12 +2,13 @@ FROM golang:trixie AS build
ARG VERSION ARG VERSION
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \ build-essential \
libsecret-1-dev \ libsecret-1-dev \
libfido2-dev \ libfido2-dev \
libcbor-dev \ libcbor-dev \
pass pass \
&& rm -rf /var/lib/apt/lists/*
# Build # Build
ADD https://github.com/ProtonMail/proton-bridge.git#${VERSION} /build/proton-bridge/ 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 sed -i 's/127.0.0.1/0.0.0.0/g' internal/constants/constants.go
RUN make build-nogui vault-editor RUN make build-nogui vault-editor
FROM debian:trixie FROM debian:trixie-slim
EXPOSE 1025/tcp EXPOSE 1025/tcp
EXPOSE 1143/tcp EXPOSE 1143/tcp
# Install dependencies and protonmail bridge # 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 \ gnupg \
pass \ pass \
libsecret-1-0 \ libsecret-1-0 \