v1.0.20
This commit is contained in:
1 parent
2829e7c0e9
commit
5527d19198
3 files changed
+30
-5
No files matched your search
+3
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user