mirror of
https://github.com/Finsys/dockhand.git
synced 2026-06-17 19:09:33 +03:00
v1.0.20
This commit is contained in:
+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