File tree Expand file tree Collapse file tree 3 files changed +34
-9
lines changed Expand file tree Collapse file tree 3 files changed +34
-9
lines changed Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1
2+
13FROM ruby:2.7-alpine
24
3- # an explicitly blank version appears to grab latest
4- # override here for a real build process
5+ LABEL org.opencontainers.image.authors='Stelligent'
6+ LABEL org.opencontainers.image.licenses='MIT'
7+ LABEL org.opencontainers.image.source='https://github.com/stelligent/cfn_nag'
8+ LABEL org.opencontainers.image.title='cfn_nag'
9+ LABEL org.opencontainers.image.vendor='Stelligent'
10+
11+ # An explicitly blank version appears to grab latest.
12+ # Pass the required version with `--build-arg version=${YOUR_VERSION}` for a real build process.
513ARG version=''
614
715RUN gem install cfn-nag --version "$version"
Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1
2+
13FROM ruby:2.7-alpine
24
3- COPY . /
5+ LABEL org.opencontainers.image.authors='Stelligent'
6+ LABEL org.opencontainers.image.licenses='MIT'
7+ LABEL org.opencontainers.image.source='https://github.com/stelligent/cfn_nag'
8+ LABEL org.opencontainers.image.title='cfn_nag for development'
9+ LABEL org.opencontainers.image.vendor='Stelligent'
410
5- RUN apk add --update build-base \
6- curl \
7- git
11+ COPY . /
812
9- RUN gem install bundler
10- RUN gem install rubocop
11- RUN bundle install
13+ RUN apk add --update --no-cache \
14+ build-base \
15+ curl \
16+ git \
17+ && gem install \
18+ bundler '~> 2.4' \
19+ rubocop '~1.67' \
20+ && bundle install
Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1
2+
13FROM ruby:2.7-alpine
24
5+ LABEL org.opencontainers.image.authors='Stelligent'
6+ LABEL org.opencontainers.image.licenses='MIT'
7+ LABEL org.opencontainers.image.source='https://github.com/stelligent/cfn_nag'
8+ LABEL org.opencontainers.image.title='cfn_nag'
9+ LABEL org.opencontainers.image.vendor='Stelligent'
10+
311ARG version
412
513COPY cfn-nag-${version}.gem /
You can’t perform that action at this time.
0 commit comments