Add security-scanner
This commit is contained in:
parent
b204cc06c4
commit
809a5e6012
16 changed files with 287 additions and 24 deletions
36
builder/Dockerfile
Normal file
36
builder/Dockerfile
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
FROM docker
|
||||
|
||||
RUN apk add --no-cache \
|
||||
ca-certificates \
|
||||
libffi \
|
||||
mktorrent \
|
||||
openssh-client \
|
||||
openssl \
|
||||
python2 \
|
||||
rsync \
|
||||
squashfs-tools \
|
||||
&& apk add --no-cache --virtual .build-deps \
|
||||
gcc \
|
||||
libffi-dev \
|
||||
make \
|
||||
musl-dev \
|
||||
openssl-dev \
|
||||
py2-pip \
|
||||
python-dev \
|
||||
&& pip install --upgrade pip \
|
||||
&& pip install ansible==2.4.3.0 \
|
||||
&& apk del .build-deps
|
||||
|
||||
ARG PACKER_VERSION
|
||||
|
||||
RUN mkdir -p /usr/local/bin \
|
||||
&& wget -O /tmp/packer.zip -c https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip \
|
||||
&& unzip /tmp/packer.zip -d /usr/local/bin \
|
||||
&& rm -f /tmp/packer.zip \
|
||||
&& mkdir /workdir
|
||||
|
||||
WORKDIR /workdir
|
||||
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue