You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
345 B
18 lines
345 B
FROM --platform=$BUILDPLATFORM golang:1.23.1 AS builder
|
|
|
|
WORKDIR /src
|
|
|
|
ARG TARGETARCH
|
|
|
|
COPY . .
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends protobuf-compiler
|
|
|
|
RUN make build TARGET_ARCH=${TARGETARCH}
|
|
|
|
FROM --platform=$TARGETPLATFORM debian:stable-slim
|
|
|
|
COPY --from=builder /src/build/ /apps/
|
|
|
|
COPY --from=builder /src /src
|