Skip to content

Commit

Permalink
Merge pull request #1058 from antontroshin/fix-go-tutorial-docker-build
Browse files Browse the repository at this point in the history
Fix distributed calculator tutorial Go docker build
  • Loading branch information
paulyuk authored Jul 24, 2024
2 parents e873f3a + c2a7d3f commit 407cebd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tutorials/distributed-calculator/go/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 407cebd

Please sign in to comment.