From dd591d21881fcebd424eb9ae9d4991fcc5237f88 Mon Sep 17 00:00:00 2001 From: jkristian-canibuild Date: Mon, 18 Nov 2024 14:45:17 +1100 Subject: [PATCH] Update Dockerfile installed docker-buildx--plugin. removed creds as image will not work on our pipelines only version 1.10 and below work and its from not being able to find creds --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9c60f2e..038cdf9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ +# syntax=docker/dockerfile:1 FROM docker ENV AWS_ECR_CRED_HELPER_VERSION="v0.7.1" @@ -21,7 +22,8 @@ RUN apk --no-cache update && \ libffi-dev \ musl-dev \ docker-compose \ - wget && \ + wget \ + docker-cli-buildx && \ update-ca-certificates && \ wget -nv -O /bin/docker-credential-ecr-login \ https://amazon-ecr-credential-helper-releases.s3.us-east-2.amazonaws.com/${AWS_ECR_CRED_HELPER_VERSION#v}/linux-amd64/docker-credential-ecr-login \ @@ -29,6 +31,3 @@ RUN apk --no-cache update && \ rm -rf /var/tmp/ && \ rm -rf /tmp/* && \ rm -rf /var/cache/apk/* - -RUN mkdir -p ~/.docker && \ - echo > ~/.docker/config.json '{ "credsStore": "ecr-login" }' \ No newline at end of file