Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
docker: upgrade to golang 1.21 and alpine 3.18
Browse files Browse the repository at this point in the history
  • Loading branch information
mcluseau committed Aug 27, 2023
1 parent a456b72 commit dd89f66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from alpine:3.17 as gomods
from alpine:3.18 as gomods

copy . /src/
run cd /src/ && find -type f \! \( -name go.work -o -name go.mod -o -name go.sum \) -exec rm {} +

from golang:1.20.3-alpine3.17 as build
from golang:1.21.0-alpine3.18 as build

# install dependencies
run apk add --update --no-cache \
Expand All @@ -27,7 +27,7 @@ add . ./
run go install -trimpath -buildvcs=false ./cmd/...

# the real image
from alpine:3.16
from alpine:3.18
entrypoint ["/bin/kpng"]
run apk add --update iptables ip6tables iproute2 ipvsadm nftables ipset conntrack-tools
copy --from=build /go/bin/ /bin/
4 changes: 2 additions & 2 deletions Dockerfile.static
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from alpine:3.16 as gomods
from alpine:3.18 as gomods

copy . /src/
run cd /src/ && find -type f \! \( -name go.work -o -name go.mod -o -name go.sum \) -exec rm {} +

from golang:1.19.2-alpine3.16 as build
from golang:1.21.0-alpine3.18 as build

# install dependencies
run apk add --update --no-cache \
Expand Down

0 comments on commit dd89f66

Please sign in to comment.