change golang build image from debian to alpine
Build and Push Docker Container / build-and-push (push) Successful in 6m29s
Build and Push Docker Container / build-and-push (push) Successful in 6m29s
This commit is contained in:
+5
-9
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user