File tree 3 files changed +34
-9
lines changed
3 files changed +34
-9
lines changed Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1
2
+
1
3
FROM ruby:2.7-alpine
2
4
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.
5
13
ARG version=''
6
14
7
15
RUN gem install cfn-nag --version "$version"
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1
2
+
1
3
FROM ruby:2.7-alpine
2
4
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'
4
10
5
- RUN apk add --update build-base \
6
- curl \
7
- git
11
+ COPY . /
8
12
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
+
1
3
FROM ruby:2.7-alpine
2
4
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
+
3
11
ARG version
4
12
5
13
COPY cfn-nag-${version}.gem /
You can’t perform that action at this time.
0 commit comments