-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
45 lines (33 loc) · 1 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
40
41
42
43
44
45
# SPDX-License-Identifier: Apache-2.0
#########################################################
## docker build --no-cache -t vela-ansible:local . ##
#########################################################
FROM alpine:latest@sha256:0a4eaa0eecf5f8c050e5bba433f58c052be7587ee8af3e8b3910ef9ab5fbe9f5
ENV ANSIBLE_VERSION 6.2.0
RUN apk --update --no-cache add \
git \
openssl \
openssh-client \
python3\
sshpass \
py3-pip
RUN apk --update add --virtual \
.build-deps \
python3-dev \
libffi-dev \
openssl-dev \
build-base
RUN pip3 install --upgrade \
pip \
cffi --break-system-packages
RUN pip3 install \
wheel \
ansible==${ANSIBLE_VERSION} \
ansible-lint --break-system-packages
RUN apk del \
.build-deps
RUN rm -rf /var/cache/apk/*
COPY release/vela-ansible /bin/vela-ansible
ENV ANSIBLE_HOST_KEY_CHECKING false
ENV StrictHostKeyChecking no
ENTRYPOINT ["/bin/vela-ansible"]