Skip to content

Commit 6d291ad

Browse files
update go for kubeapply
1 parent 34ee3d1 commit 6d291ad

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

Dockerfile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Fetch or build all required binaries
2-
FROM golang:1.19.9 as builder
2+
FROM golang:1.23 as builder
33

44
ARG VERSION_REF
55
RUN test -n "${VERSION_REF}"
66

77
ENV SRC github.com/segmentio/kubeapply
88

99
RUN apt-get update && apt-get install --yes \
10-
curl \
11-
unzip \
12-
wget
10+
curl \
11+
unzip \
12+
wget
1313

1414
COPY . /go/src/${SRC}
1515
RUN cd /usr/local/bin && /go/src/${SRC}/scripts/pull-deps.sh
@@ -20,21 +20,21 @@ ENV CGO_ENABLED=1
2020
ENV GO111MODULE=on
2121

2222
RUN make kubeapply VERSION_REF=${VERSION_REF} && \
23-
cp build/kubeapply /usr/local/bin
23+
cp build/kubeapply /usr/local/bin
2424

2525
# Copy into final image
26-
FROM ubuntu:20.04
26+
FROM ubuntu:24.04
2727

2828
RUN apt-get update && apt-get install --yes \
29-
curl \
30-
git \
31-
python3 \
32-
python3-pip
29+
curl \
30+
git \
31+
python3 \
32+
python3-pip
3333

3434
RUN pip3 install awscli
3535

3636
COPY --from=builder \
37-
/usr/local/bin/helm \
38-
/usr/local/bin/kubectl \
39-
/usr/local/bin/kubeapply \
40-
/usr/local/bin/
37+
/usr/local/bin/helm \
38+
/usr/local/bin/kubectl \
39+
/usr/local/bin/kubeapply \
40+
/usr/local/bin/

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/segmentio/kubeapply
22

3-
go 1.20
3+
go 1.23
44

55
require (
66
github.com/Masterminds/semver/v3 v3.1.1

0 commit comments

Comments
 (0)