forked from hashicorp/setup-packer
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (37 loc) · 1021 Bytes
/
Dockerfile
File metadata and controls
40 lines (37 loc) · 1021 Bytes
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
40
# see https://hub.docker.com/r/hashicorp/packer/tags for all available tags
ARG PACKER_VERSION=1.8.7
FROM hashicorp/packer:light-${PACKER_VERSION}
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"]