-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
20 lines (16 loc) · 922 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ghcr.io/dockhippie/alpine:3.20
ENTRYPOINT [""]
ENV PY_COLORS=1
ENV ANSIBLE_FORCE_COLOR=true
# renovate: datasource=pypi depName=molecule
ENV MOLECULE_CORE_VERSION=24.12.0
# renovate: datasource=pypi depName=molecule-plugins
ENV MOLECULE_PLUGINS_VERSION=23.6.0
# renovate: datasource=pypi depName=ansible
ENV ANSIBLE_CORE_VERSION=11.1.0
RUN apk update && \
apk upgrade && \
apk add --no-cache bash python3 python3-dev py3-pip build-base openssl-dev libffi-dev cargo && \
pip3 install --break-system-packages -U molecule==${MOLECULE_CORE_VERSION} molecule-plugins[containers]==${MOLECULE_PLUGINS_VERSION} molecule-plugins[podman]==${MOLECULE_PLUGINS_VERSION} molecule-plugins[docker]==${MOLECULE_PLUGINS_VERSION} ansible==${ANSIBLE_CORE_VERSION} ansible-lint pytest-molecule yamllint testinfra flake8 pycrypto && \
apk del build-base openssl-dev libffi-dev cargo && \
rm -rf /var/cache/apk/* /root/.cache