mirror of
https://github.com/inspec/inspec
synced 2025-02-16 22:18:38 +00:00
commit
25f9c1c845
2 changed files with 7 additions and 3 deletions
|
@ -10,4 +10,4 @@
|
|||
|
||||
set -evx
|
||||
|
||||
sed -i -r "s/^ARG VERSION=.*/ARG VERSION=${VERSION}/" Dockerfile
|
||||
sed -i -r "s/^ARG VERSION=.*/ARG VERSION=${EXPEDITOR_VERSION}/" Dockerfile
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
FROM ruby:alpine
|
||||
MAINTAINER Chef Software, Inc. <docker@chef.io>
|
||||
LABEL maintainer="Chef Software, Inc. <docker@chef.io>"
|
||||
|
||||
ARG VERSION=
|
||||
ARG EXPEDITOR_VERSION
|
||||
ARG VERSION=4.10.4
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue