Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 09d47f6

Browse files
committedOct 20, 2024
Update Dockerfile files
1 parent 8b5f03d commit 09d47f6

File tree

3 files changed

+34
-9
lines changed

3 files changed

+34
-9
lines changed
 

‎Dockerfile

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
# syntax=docker/dockerfile:1
2+
13
FROM 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.
513
ARG version=''
614

715
RUN gem install cfn-nag --version "$version"

‎Dockerfile-dev

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1+
# syntax=docker/dockerfile:1
2+
13
FROM 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.22' \
19+
'rubocop:~>1.67' \
20+
&& bundle install

‎Dockerfile.local

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
# syntax=docker/dockerfile:1
2+
13
FROM 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+
311
ARG version
412

513
COPY cfn-nag-${version}.gem /

0 commit comments

Comments
 (0)
Please sign in to comment.