Skip to content

Commit

Permalink
Remove apt-key usage, use cloud-sdk instead of cloud-sdk-stretch
Browse files Browse the repository at this point in the history
  • Loading branch information
rnijveld committed May 14, 2024
1 parent 75b31ab commit f945d42
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@ COPY . /app
RUN cargo build --release

FROM ghcr.io/tweedegolf/debian:bookworm

# install kubectl
RUN curl -s -L https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \
&& echo "deb http://packages.cloud.google.com/apt cloud-sdk-stretch main" > /etc/apt/sources.list.d/google-cloud-sdk.list \
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" > /etc/apt/sources.list.d/google-cloud-sdk.list \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
kubectl \
&& rm -rf /var/lib/apt/lists/*

# install age
ENV AGE_VERSION=1.1.1
RUN curl -s -L https://github.com/FiloSottile/age/releases/download/v${AGE_VERSION}/age-v${AGE_VERSION}-linux-amd64.tar.gz -o /tmp/age.tar.gz \
&& tar xvf /tmp/age.tar.gz -C /tmp \
&& mv /tmp/age/age /usr/local/bin/age \
&& mv /tmp/age/age-keygen /usr/local/bin/age-keygen \
&& rm -rf /tmp/{age,age.tar.gz}

# install sops
ENV SOPS_VERSION=3.8.1
RUN curl -s -L https://github.com/getsops/sops/releases/download/v${SOPS_VERSION}/sops-v${SOPS_VERSION}.linux -o /usr/local/bin/sops \
Expand Down

0 comments on commit f945d42

Please sign in to comment.