Skip to content

Commit

Permalink
chore: use debian bookworm (#4291)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpf-okteto committed May 15, 2024
1 parent 7f2335b commit 38026db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
ARG KUBECTL_VERSION=1.29.4
ARG HELM_VERSION=3.14.4
ARG KUSTOMIZE_VERSION=5.4.1
FROM golang:1.22-bookworm as golang-builder


FROM golang:1.22-bullseye as kubectl-builder
FROM golang-builder as kubectl-builder

ARG TARGETARCH
ARG KUBECTL_VERSION
Expand All @@ -14,7 +14,7 @@ RUN curl -sLf --retry 3 -o kubectl https://storage.googleapis.com/kubernetes-rel
chmod +x /usr/local/bin/kubectl && \
/usr/local/bin/kubectl version --client=true

FROM golang:1.22-bullseye as helm-builder
FROM golang-builder as helm-builder

ARG TARGETARCH
ARG HELM_VERSION
Expand All @@ -24,15 +24,15 @@ RUN curl -sLf --retry 3 -o helm.tar.gz https://get.helm.sh/helm-v${HELM_VERSION}
chmod +x /usr/local/bin/helm && \
/usr/local/bin/helm version

FROM golang:1.22-bullseye as kustomize-builder
FROM golang-builder as kustomize-builder
ARG TARGETARCH
ARG KUSTOMIZE_VERSION
RUN curl -sLf --retry 3 -o kustomize.tar.gz https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_${TARGETARCH}.tar.gz \
&& tar -xvzf kustomize.tar.gz -C /usr/local/bin \
&& chmod +x /usr/local/bin/kustomize \
&& /usr/local/bin/kustomize version

FROM golang:1.22-bullseye as builder
FROM golang-builder as builder
WORKDIR /okteto

ENV CGO_ENABLED=0
Expand Down

0 comments on commit 38026db

Please sign in to comment.