diff --git a/tutorials/distributed-calculator/go/Dockerfile b/tutorials/distributed-calculator/go/Dockerfile index 3e3736772..feed071cd 100644 --- a/tutorials/distributed-calculator/go/Dockerfile +++ b/tutorials/distributed-calculator/go/Dockerfile @@ -1,11 +1,10 @@ #first stage - builder -FROM golang:1.15-buster as builder +FROM golang:1.22-bookworm as builder WORKDIR /dir -COPY app.go . -RUN go get -d -v +COPY app.go go.mod go.sum ./ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . #second stage -FROM debian:buster-slim +FROM debian:bookworm-slim WORKDIR /root/ COPY --from=builder /dir/app . CMD ["./app"]