Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# syntax=docker/dockerfile:1

FROM ruby:2.7-alpine

# an explicitly blank version appears to grab latest
# override here for a real build process
LABEL org.opencontainers.image.authors='Stelligent'
LABEL org.opencontainers.image.licenses='MIT'
LABEL org.opencontainers.image.source='https://github.com/stelligent/cfn_nag'
LABEL org.opencontainers.image.title='cfn_nag'
LABEL org.opencontainers.image.vendor='Stelligent'

# An explicitly blank version appears to grab latest.
# Pass the required version with `--build-arg version=${YOUR_VERSION}` for a real build process.
ARG version=''

RUN gem install cfn-nag --version "$version"
Expand Down
23 changes: 16 additions & 7 deletions Dockerfile-dev
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
# syntax=docker/dockerfile:1

FROM ruby:2.7-alpine

COPY . /
LABEL org.opencontainers.image.authors='Stelligent'
LABEL org.opencontainers.image.licenses='MIT'
LABEL org.opencontainers.image.source='https://github.com/stelligent/cfn_nag'
LABEL org.opencontainers.image.title='cfn_nag for development'
LABEL org.opencontainers.image.vendor='Stelligent'

RUN apk add --update build-base \
curl \
git
COPY . /

RUN gem install bundler
RUN gem install rubocop
RUN bundle install
RUN apk add --update --no-cache \
build-base \
curl \
git \
&& gem install \
'bundler:2.4.22' \
'rubocop:~>1.67' \
&& bundle install
8 changes: 8 additions & 0 deletions Dockerfile.local
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# syntax=docker/dockerfile:1

FROM ruby:2.7-alpine

LABEL org.opencontainers.image.authors='Stelligent'
LABEL org.opencontainers.image.licenses='MIT'
LABEL org.opencontainers.image.source='https://github.com/stelligent/cfn_nag'
LABEL org.opencontainers.image.title='cfn_nag'
LABEL org.opencontainers.image.vendor='Stelligent'

ARG version

COPY cfn-nag-${version}.gem /
Expand Down