change golang build image from debian to alpine
Build and Push Docker Container / build-and-push (push) Successful in 6m29s

This commit is contained in:
GitHub Actions
2026-03-11 07:57:24 +01:00
parent 482c31cca3
commit a26ac3382f
+5 -9
View File
@@ -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