mirror of
https://github.com/inspec/inspec
synced 2024-11-21 20:23:06 +00:00
0e45195d9c
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
35 lines
1 KiB
Docker
35 lines
1 KiB
Docker
FROM --platform=linux/amd64 ubuntu:22.04
|
|
LABEL maintainer="Chef Software, Inc. <docker@chef.io>"
|
|
|
|
ARG VERSION=5.22.3
|
|
ARG CHANNEL=stable
|
|
|
|
ENV PATH=/opt/inspec/bin:/opt/inspec/embedded/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
|
|
# Run the entire container with the default locale to be en_US.UTF-8
|
|
RUN apt-get update && \
|
|
apt-get install -y locales && \
|
|
locale-gen en_US.UTF-8 && \
|
|
update-locale LANG=en_US.UTF-8 && \
|
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
ENV LANG=en_US.UTF-8 \
|
|
LANGUAGE=en_US:en \
|
|
LC_ALL=en_US.UTF-8
|
|
|
|
|
|
RUN mkdir -p /share
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y wget rpm2cpio cpio && \
|
|
wget "https://packages.chef.io/files/${CHANNEL}/inspec/${VERSION}/el/7/inspec-${VERSION}-1.el7.x86_64.rpm" -O /tmp/inspec.rpm && \
|
|
rpm2cpio /tmp/inspec.rpm | cpio -idmv && \
|
|
rm -rf /tmp/inspec.rpm
|
|
|
|
# Install any packages that make life easier for an InSpec installation
|
|
RUN apt-get install -y git
|
|
|
|
ENTRYPOINT ["inspec"]
|
|
CMD ["help"]
|
|
VOLUME ["/share"]
|
|
WORKDIR /share
|