Created
December 17, 2019 12:45
-
-
Save wshihadeh/2d68049b81748440851cf27015f23b2d to your computer and use it in GitHub Desktop.
Clair Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM quay.io/coreos/clair:v2.1.2 | |
LABEL maintainer="AL-waleed Shihadeh <[email protected]>" | |
ENV BUILD_DEPS="gettext" \ | |
RUNTIME_DEPS="libintl" | |
COPY ./docker-entrypoint.sh / | |
ENTRYPOINT ["/docker-entrypoint.sh"] | |
RUN set -x && \ | |
apk add --update $RUNTIME_DEPS && \ | |
apk add --virtual build_deps $BUILD_DEPS && \ | |
cp /usr/bin/envsubst /usr/local/bin/envsubst && \ | |
apk del build_deps | |
COPY ./config.yaml.tpl /etc/clair/config.yaml.tpl | |
CMD ["clair"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment