2021-05-07 13:26:47 +00:00
|
|
|
FROM arm64v8/python:3.9-alpine@sha256:a24a35517f089f98e4b54c9eedf330754b775615d88cf3db6d056f894d5e11ba
|
2019-10-10 15:58:58 +00:00
|
|
|
|
2020-12-28 15:38:02 +00:00
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.title="ansible-later"
|
|
|
|
LABEL org.opencontainers.image.url="https://ansible-later.geekdocs.de/"
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/thegeeklab/ansible-later"
|
|
|
|
LABEL org.opencontainers.image.documentation="https://ansible-later.geekdocs.de/"
|
2019-10-10 15:58:58 +00:00
|
|
|
|
2019-10-15 22:49:13 +00:00
|
|
|
ENV PY_COLORS=1
|
2021-02-19 08:48:31 +00:00
|
|
|
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
2019-10-15 22:49:13 +00:00
|
|
|
|
2019-10-10 15:58:58 +00:00
|
|
|
ADD dist/ansible_later-*.whl /
|
|
|
|
|
2021-02-12 14:08:14 +00:00
|
|
|
RUN apk --update add --virtual .build-deps build-base libffi-dev musl-dev libressl-dev python3-dev cargo && \
|
2019-10-15 22:22:58 +00:00
|
|
|
apk --update add git && \
|
2019-10-15 22:01:27 +00:00
|
|
|
pip install --upgrade --no-cache-dir pip && \
|
2021-01-07 13:38:48 +00:00
|
|
|
pip install --no-cache-dir $(find / -name "ansible_later-*.whl")[ansible] && \
|
2020-04-11 11:36:11 +00:00
|
|
|
apk del .build-deps && \
|
2020-04-11 11:27:58 +00:00
|
|
|
rm -f ansible_later-*.whl && \
|
2019-10-10 20:21:01 +00:00
|
|
|
rm -rf /var/cache/apk/* && \
|
2020-04-11 11:41:49 +00:00
|
|
|
rm -rf /root/.cache/
|
2019-10-10 15:58:58 +00:00
|
|
|
|
|
|
|
USER root
|
|
|
|
CMD []
|
|
|
|
ENTRYPOINT ["/usr/local/bin/ansible-later"]
|