forked from patrontech/packer-ansible-github-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (36 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# see https://hub.docker.com/r/hashicorp/packer/tags for all available tags
FROM hashicorp/packer:light@sha256:93291f0b3041080b47b065b77309e5c1beee52c6bd691224d21d32e91ec9b562
ARG MITOGEN_VERSION=0.2.9
ARG ANSIBLE_VERSION=3.2.0
LABEL ansibleVersion=$ANSIBLE_VERSION
ARG ANSIBLE_LINT_VERSION=5.0.7
RUN apk --update --no-cache add \
ca-certificates \
git \
openssh-client \
openssl \
python3\
py3-pip \
py3-cryptography \
rsync \
sshpass
RUN apk --update add --virtual \
.build-deps \
python3-dev \
libffi-dev \
openssl-dev \
build-base \
curl \
# && curl -s -L https://networkgenomics.com/try/mitogen-${MITOGEN_VERSION}.tar.gz | tar xzf - -C /opt/ \
# && mv /opt/mitogen-* /opt/mitogen \
&& pip3 install --upgrade \
pip \
cffi \
&& pip3 install \
ansible==${ANSIBLE_VERSION} \
ansible-lint==${ANSIBLE_LINT_VERSION} \
&& apk del \
.build-deps \
&& rm -rf /var/cache/apk/*
COPY "entrypoint.sh" "/entrypoint.sh"
ENTRYPOINT ["/entrypoint.sh"]