Skip to content

Instantly share code, notes, and snippets.

@wshihadeh
Created December 17, 2019 12:45
Show Gist options
  • Save wshihadeh/2d68049b81748440851cf27015f23b2d to your computer and use it in GitHub Desktop.
Save wshihadeh/2d68049b81748440851cf27015f23b2d to your computer and use it in GitHub Desktop.
Clair Dockerfile
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