2019-10-08 15:39:08 +02:00
|
|
|
FROM python:3.7-alpine
|
|
|
|
|
2020-09-27 14:21:54 +02:00
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>" \
|
2019-10-08 15:39:08 +02:00
|
|
|
org.label-schema.name="ansible-doctor" \
|
2020-09-27 14:21:54 +02:00
|
|
|
org.label-schema.vcs-url="https://github.com/thegeeklab/ansible-doctor" \
|
2019-10-08 15:39:08 +02:00
|
|
|
org.label-schema.vendor="Robert Kaussow" \
|
|
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
|
2019-10-16 07:59:45 +02:00
|
|
|
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"]
|