Skip to content

Commit

Permalink
Merge pull request #67 from weisdd/feature/flattened-image
Browse files Browse the repository at this point in the history
Flatten the image (reduces the image size by ~86%)
  • Loading branch information
arminc committed May 13, 2022
2 parents 9bca9a9 + 1ee12b5 commit a064486
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion clair/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
ARG VERSION=latest

FROM quay.io/coreos/clair:${VERSION}
FROM quay.io/coreos/clair:${VERSION} as src

FROM scratch
COPY --from=src / /
COPY config.yaml /config/config.yaml
COPY gitconfig /etc/gitconfig

# Copied from the original image
ENTRYPOINT [ "/clair" ]
CMD ["-config=/config/config.yaml"]
2 changes: 1 addition & 1 deletion clair/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ clair:
certfile:

# Optional HTTP Proxy: must be a valid URL (including the scheme).
proxy:
proxy:

0 comments on commit a064486

Please sign in to comment.