ansible-doctor/docker/Dockerfile

23 lines
622 B
Docker
Raw Normal View History

2019-10-08 15:39:08 +02:00
FROM python:3.7-alpine
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
org.label-schema.name="ansible-doctor" \
org.label-schema.vcs-url="https://github.com/xoxys/ansible-doctor" \
org.label-schema.vendor="Robert Kaussow" \
org.label-schema.schema-version="1.0"
ENV PY_COLORS=1
2019-10-08 17:02:40 +02:00
ADD dist/ansible_doctor-*.whl /
2019-10-08 16:26:58 +02:00
2020-04-11 13:34:30 +02:00
RUN apk update && \
2019-10-08 16:26:58 +02:00
pip install --upgrade --no-cache-dir pip && \
2020-04-11 13:25:56 +02:00
pip install --no-cache-dir ansible_doctor-*.whl && \
2020-04-11 13:27:14 +02:00
rm -f ansible_doctor-*.whl && \
2020-04-11 13:34:30 +02:00
rm -rf /var/cache/apk/* && \
2019-10-08 16:26:58 +02:00
rm -rf /root/.cache/
2019-10-08 15:39:08 +02:00
USER root
CMD []
2019-10-08 17:33:20 +02:00
ENTRYPOINT ["/usr/local/bin/ansible-doctor"]