2016-04-13 03:58:18 +00:00
|
|
|
FROM ruby:alpine
|
2019-08-08 14:01:01 +00:00
|
|
|
LABEL maintainer="Chef Software, Inc. <docker@chef.io>"
|
2017-09-14 19:16:29 +00:00
|
|
|
|
2019-08-08 14:01:01 +00:00
|
|
|
ARG EXPEDITOR_VERSION
|
2019-08-29 20:53:36 +00:00
|
|
|
ARG VERSION=4.16.0
|
2017-09-14 19:16:29 +00:00
|
|
|
ARG GEM_SOURCE=https://rubygems.org
|
|
|
|
|
2019-08-08 14:01:01 +00:00
|
|
|
# Allow VERSION below to be controlled by either VERSION or EXPEDITOR_VERSION build arguments
|
|
|
|
ENV VERSION ${EXPEDITOR_VERSION:-${VERSION}}
|
|
|
|
|
2018-01-02 18:12:33 +00:00
|
|
|
RUN mkdir -p /share
|
2019-04-26 17:34:08 +00:00
|
|
|
RUN apk add --update build-base libxml2-dev libffi-dev git openssh-client
|
|
|
|
RUN gem install --no-document --source ${GEM_SOURCE} --version ${VERSION} inspec
|
|
|
|
RUN gem install --no-document --source ${GEM_SOURCE} --version ${VERSION} inspec-bin
|
|
|
|
RUN apk del build-base
|
|
|
|
|
2016-04-13 03:58:18 +00:00
|
|
|
ENTRYPOINT ["inspec"]
|
|
|
|
CMD ["help"]
|
|
|
|
VOLUME ["/share"]
|
|
|
|
WORKDIR /share
|