Skip to content

Commit

Permalink
Dockerfile: use environment variables
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Mar 18, 2020
1 parent f1c4798 commit e56b95a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ RUN apk add --no-cache tar rpm ca-certificates dumb-init
# change ownership of ssl directory to allow custom cert in OpenShift
RUN chgrp -R 0 /etc/ssl/certs && \
chmod -R g=u /etc/ssl/certs
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/bin/clair", "-conf"]
CMD ["/config/config.yaml"]
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/bin/clair"]
VOLUME /config
EXPOSE 6060
WORKDIR /run
ENV CLAIR_CONF=/config/config.yaml CLAIR_MODE=combo

COPY --from=build /build/clair /bin/clair

0 comments on commit e56b95a

Please sign in to comment.