Skip to content

Commit

Permalink
Merge pull request #5 from mrakopes/build-upd
Browse files Browse the repository at this point in the history
Dockerfile - update golang:1.20, alpine:3.17
  • Loading branch information
mrakopes authored Feb 9, 2023
2 parents 80e2b9d + c60a410 commit 0f11683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the dnsmasq-controller binary
FROM golang:1.14 as builder
FROM golang:1.20 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -18,7 +18,7 @@ COPY pkg/ pkg/
# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o dnsmasq-controller main.go

FROM alpine:3.12
FROM alpine:3.17
RUN apk add --no-cache dnsmasq
COPY --from=builder /workspace/dnsmasq-controller /dnsmasq-controller

Expand Down

0 comments on commit 0f11683

Please sign in to comment.