Skip to content

Commit

Permalink
Fix distributed calculator tutorial Go docker build
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Troshin <[email protected]>
  • Loading branch information
antontroshin committed Jul 23, 2024
1 parent e8d195a commit 99e07f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tutorials/distributed-calculator/go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#first stage - builder
FROM golang:1.15-buster as builder
FROM golang:1.19-buster 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
Expand Down

0 comments on commit 99e07f1

Please sign in to comment.