Skip to content

Commit

Permalink
feat(image): add skopeo
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrtak-CZ committed Sep 5, 2023
1 parent 6b6c7d6 commit 9678e50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ RUN /tmp/download-aws-cli.sh

COPY scripts/deploy-s3-cf.sh /usr/local/bin/deploy-s3-cf

FROM cookielab/container-image-tools:1.4.0-aws AS container-image-tools

FROM cookielab/slim:12.0

RUN apt update && apt install -y curl jq \
RUN apt update && apt install -y curl jq skopeo \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

COPY --from=build /usr/local/bin /usr/local/bin
Expand All @@ -36,7 +38,10 @@ COPY --from=build /tmp/aws /tmp/aws
RUN /tmp/aws/install
RUN rm -rf /tmp/aws

ARG GITHUB_TOKEN
RUN mkdir ~/.docker
COPY --from=container-image-tools /container-image-tools/bin/docker-* /usr/local/bin/
COPY --from=container-image-tools /etc/containers/policy.json /etc/containers/policy.json
COPY registries.conf /etc/containers/registries.conf

USER 1987

Expand Down
1 change: 1 addition & 0 deletions registries.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
credential-helpers = ["env", "ecr-login", "gcr"]

0 comments on commit 9678e50

Please sign in to comment.