Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Fetch or build all required binaries
FROM golang:1.19.9 as builder
FROM golang:1.23 as builder

ARG VERSION_REF
RUN test -n "${VERSION_REF}"

ENV SRC github.com/segmentio/kubeapply

RUN apt-get update && apt-get install --yes \
curl \
unzip \
wget
curl \
unzip \
wget

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

RUN make kubeapply VERSION_REF=${VERSION_REF} && \
cp build/kubeapply /usr/local/bin
cp build/kubeapply /usr/local/bin

# Copy into final image
FROM ubuntu:20.04
FROM ubuntu:24.04

RUN apt-get update && apt-get install --yes \
curl \
git \
python3 \
python3-pip
curl \
git \
python3 \
python3-pip

RUN pip3 install awscli

COPY --from=builder \
/usr/local/bin/helm \
/usr/local/bin/kubectl \
/usr/local/bin/kubeapply \
/usr/local/bin/
/usr/local/bin/helm \
/usr/local/bin/kubectl \
/usr/local/bin/kubeapply \
/usr/local/bin/
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/segmentio/kubeapply

go 1.20
go 1.23

require (
github.com/Masterminds/semver/v3 v3.1.1
Expand Down