This commit is contained in:
jarek
2026-03-02 13:10:03 +01:00
parent 2829e7c0e9
commit 5527d19198
3 changed files with 30 additions and 5 deletions
+3 -2
View File
@@ -90,10 +90,11 @@ RUN rm -rf node_modules \
&& rm -rf node_modules/@types
# Build Go collector
FROM golang:1.24 AS go-builder
FROM --platform=$BUILDPLATFORM golang:1.24 AS go-builder
ARG TARGETARCH
WORKDIR /app
COPY collector/ ./collector/
RUN cd collector && CGO_ENABLED=0 go build -o /app/bin/collection-worker .
RUN cd collector && CGO_ENABLED=0 GOARCH=$TARGETARCH go build -o /app/bin/collection-worker .
# -----------------------------------------------------------------------------
# Stage 3: Final Image (Scratch + Custom Wolfi OS)