2016-04-13 03:58:18 +00:00
|
|
|
FROM ruby:alpine
|
2017-09-14 19:16:29 +00:00
|
|
|
MAINTAINER Chef Software, Inc. <docker@chef.io>
|
|
|
|
|
2019-03-22 06:07:18 +00:00
|
|
|
ARG VERSION=3.7.11
|
2017-09-14 19:16:29 +00:00
|
|
|
ARG GEM_SOURCE=https://rubygems.org
|
|
|
|
|
2018-01-02 18:12:33 +00:00
|
|
|
RUN mkdir -p /share
|
2018-07-26 18:13:11 +00:00
|
|
|
RUN apk add --update build-base libxml2-dev libffi-dev git openssh-client && \
|
2017-09-14 19:16:29 +00:00
|
|
|
gem install --no-document --source ${GEM_SOURCE} --version ${VERSION} inspec && \
|
2016-05-13 10:59:33 +00:00
|
|
|
apk del build-base
|
2016-04-13 03:58:18 +00:00
|
|
|
ENTRYPOINT ["inspec"]
|
|
|
|
CMD ["help"]
|
|
|
|
VOLUME ["/share"]
|
|
|
|
WORKDIR /share
|