ansible-later/Dockerfile

25 lines
738 B
Docker
Raw Normal View History

2019-10-10 15:58:58 +00:00
FROM python:3.7-alpine
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
org.label-schema.name="ansible-later" \
org.label-schema.vcs-url="https://github.com/xoxys/ansible-later" \
org.label-schema.vendor="Robert Kaussow" \
org.label-schema.schema-version="1.0"
ENV PY_COLORS=1
2019-10-10 15:58:58 +00:00
ADD dist/ansible_later-*.whl /
2019-10-15 22:22:58 +00:00
RUN apk --update add --virtual .build-deps build-base libffi-dev libressl-dev && \
apk --update add git && \
2019-10-15 22:01:27 +00:00
pip install --upgrade --no-cache-dir pip && \
2020-04-11 11:27:58 +00:00
pip install --no-cache-dir ansible_later-*.whl && \
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"]