FROM ruby:alpine LABEL maintainer="Chef Software, Inc. " ARG EXPEDITOR_VERSION ARG VERSION=4.22.22 # GEM_SOURCE is kept away from expeditor controlled ARGs to accomodate 3rd party distros ARG GEM_SOURCE=https://rubygems.org # Allow VERSION below to be controlled by either VERSION or EXPEDITOR_VERSION build arguments ENV VERSION ${EXPEDITOR_VERSION:-${VERSION}} RUN mkdir -p /share 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 ENTRYPOINT ["inspec"] CMD ["help"] VOLUME ["/share"] WORKDIR /share