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
|
ARG VERSION
|
||||||
|
|
||||||
# Install dependencies
|
RUN apk add --no-cache pass gcc musl-dev git make \
|
||||||
RUN apt-get update && apt-get install -y \
|
libsecret-dev \
|
||||||
build-essential \
|
|
||||||
libsecret-1-dev \
|
|
||||||
libfido2-dev \
|
libfido2-dev \
|
||||||
libcbor-dev \
|
libcbor-dev
|
||||||
pass
|
|
||||||
|
|
||||||
# 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/
|
||||||
WORKDIR /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 sed -i 's/127.0.0.1/0.0.0.0/g' internal/constants/constants.go
|
||||||
RUN set -eux; \
|
RUN make build-nogui vault-editor
|
||||||
make build-nogui vault-editor
|
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user