aboutsummaryrefslogtreecommitdiffstats
path: root/hived/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hived/Dockerfile6
-rw-r--r--hived/Dockerfile_distroless4
-rw-r--r--hived/Dockerfile_distroless_vendored4
3 files changed, 7 insertions, 7 deletions
diff --git a/hived/Dockerfile b/hived/Dockerfile
index 407c8ac..20873f6 100644
--- a/hived/Dockerfile
+++ b/hived/Dockerfile
@@ -1,9 +1,9 @@
-FROM golang:1.22-alpine3.20 as builder
+FROM golang:1.24-alpine3.22 AS builder
COPY go.* /hived/
RUN cd /hived && go mod download
COPY *.go /hived/
-RUN cd /hived && go build
+RUN cd /hived && CGO_ENABLED=0 go build
-FROM alpine:3.20
+FROM alpine:3.22
COPY --from=builder /hived/hived /hived/
ENTRYPOINT ["/hived/hived"]
diff --git a/hived/Dockerfile_distroless b/hived/Dockerfile_distroless
index c21dd2d..099171f 100644
--- a/hived/Dockerfile_distroless
+++ b/hived/Dockerfile_distroless
@@ -1,8 +1,8 @@
-FROM golang:1.22-alpine3.20 as builder
+FROM golang:1.24-alpine3.22 AS builder
COPY go.* /hived/
RUN cd /hived && go mod download
COPY *.go /hived/
-RUN cd /hived && go build
+RUN cd /hived && CGO_ENABLED=0 go build
FROM gcr.io/distroless/static-debian12
COPY --from=builder /hived/hived "/usr/bin/hived"
diff --git a/hived/Dockerfile_distroless_vendored b/hived/Dockerfile_distroless_vendored
index 125c0ae..3c7de74 100644
--- a/hived/Dockerfile_distroless_vendored
+++ b/hived/Dockerfile_distroless_vendored
@@ -1,9 +1,9 @@
-FROM golang:1.22-alpine3.20 as builder
+FROM golang:1.24-alpine3.22 AS builder
WORKDIR /hived
COPY go.sum go.mod /hived/
COPY vendor /hived/vendor
COPY *.go /hived/
-RUN go build
+RUN CGO_ENABLED=0 go build
FROM gcr.io/distroless/static-debian12
COPY --from=builder /hived/hived "/usr/bin/hived"