Created
October 17, 2017 15:10
-
-
Save andrewhampton/d78df6952e757fd10384015fdf30a7c4 to your computer and use it in GitHub Desktop.
Dockerfile for bundle-audit
This file contains 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 ruby:2.4.1 | |
RUN gem install 'bundle-audit' | |
ADD Gemfile ./ | |
ADD Gemfile.lock ./ | |
# We never want the `bundle audit update` to be cached. So this will help bust | |
# the cache if you include this in your build command: | |
# `--build-arg CACHEBUST=$(date +%s)` | |
# https://github.com/moby/moby/issues/1996#issuecomment-295683518 | |
ARG CACHEBUST=1 | |
RUN bundle audit update | |
CMD ["bundle-audit"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment