2024-09-05 04:11:12 +02:00
|
|
|
FROM python:3.12-alpine@sha256:aeff64320ffb81056a2afae9d627875c5ba7d303fb40d6c0a43ee49d8f82641c
|
2019-10-10 17:58:58 +02:00
|
|
|
|
2020-12-28 16:38:02 +01: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 17:58:58 +02:00
|
|
|
|
2019-10-16 00:49:13 +02:00
|
|
|
ENV PY_COLORS=1
|
2021-02-19 09:48:31 +01:00
|
|
|
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
2019-10-16 00:49:13 +02:00
|
|
|
|
2019-10-10 17:58:58 +02:00
|
|
|
ADD dist/ansible_later-*.whl /
|
|
|
|
|
2022-01-09 22:08:40 +01:00
|
|
|
RUN apk --update add --virtual .build-deps build-base libffi-dev openssl-dev musl-dev python3-dev cargo && \
|
2019-10-16 00:22:58 +02:00
|
|
|
apk --update add git && \
|
2019-10-16 00:01:27 +02:00
|
|
|
pip install --upgrade --no-cache-dir pip && \
|
2021-01-07 14:38:48 +01:00
|
|
|
pip install --no-cache-dir $(find / -name "ansible_later-*.whl")[ansible] && \
|
2020-04-11 13:36:11 +02:00
|
|
|
apk del .build-deps && \
|
2020-04-11 13:27:58 +02:00
|
|
|
rm -f ansible_later-*.whl && \
|
2019-10-10 22:21:01 +02:00
|
|
|
rm -rf /var/cache/apk/* && \
|
2020-04-11 13:41:49 +02:00
|
|
|
rm -rf /root/.cache/
|
2019-10-10 17:58:58 +02:00
|
|
|
|
|
|
|
USER root
|
|
|
|
CMD []
|
|
|
|
ENTRYPOINT ["/usr/local/bin/ansible-later"]
|