Skip to content

Commit

Permalink
Setting ECR config to docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
adenot committed May 18, 2019
1 parent 6a8a039 commit a839ae9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /go/src/github.com/awslabs/amazon-ecr-credential-helper
RUN make linux-amd64


FROM docker
FROM docker:18

LABEL maintainer "@adenot"

Expand All @@ -18,5 +18,7 @@ RUN apk --no-cache update && apk --no-cache upgrade \
RUN pip install --upgrade pip docker-compose

COPY --from=build-ecr-plugin /go/src/github.com/awslabs/amazon-ecr-credential-helper/bin/linux-amd64/docker-credential-ecr-login /bin
RUN mkdir -p ~/.docker
RUN echo > ~/.docker/config.json '{ "credsStore": "ecr-login" }'

CMD [ "make" ]

0 comments on commit a839ae9

Please sign in to comment.