From a26ac3382fa52abbba85b78fea0117470df88cca Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 11 Mar 2026 07:57:24 +0100 Subject: [PATCH] change golang build image from debian to alpine --- build/Dockerfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index ff73834..36053a9 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,21 +1,17 @@ -FROM golang:1.26 AS build +FROM golang:alpine AS build ARG VERSION -# Install dependencies -RUN apt-get update && apt-get install -y \ - build-essential \ - libsecret-1-dev \ +RUN apk add --no-cache pass gcc musl-dev git make \ + libsecret-dev \ libfido2-dev \ - libcbor-dev \ - pass + libcbor-dev # 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/0.0.0.0/g' internal/constants/constants.go -RUN set -eux; \ - make build-nogui vault-editor +RUN make build-nogui vault-editor FROM alpine:latest