2020-03-07 14:52:02 +00:00
|
|
|
FROM python:3.8-alpine
|
|
|
|
|
|
|
|
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
|
|
|
|
org.label-schema.name="docker-tidy" \
|
|
|
|
org.label-schema.vcs-url="https://github.com/xoxys/docker-tidy" \
|
|
|
|
org.label-schema.vendor="Robert Kaussow" \
|
|
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
|
|
|
|
ENV PY_COLORS=1
|
|
|
|
|
|
|
|
ADD dist/docker_tidy-*.whl /
|
|
|
|
|
|
|
|
RUN \
|
2020-03-15 14:34:41 +00:00
|
|
|
apk --update add --virtual .build-deps gcc g++ && \
|
2020-03-07 14:52:02 +00:00
|
|
|
pip install --upgrade --no-cache-dir pip && \
|
|
|
|
pip install --no-cache-dir --find-links=. docker-tidy && \
|
|
|
|
rm -f docker_tidy-*.whl && \
|
2020-03-15 14:19:18 +00:00
|
|
|
apk del .build-deps && \
|
|
|
|
rm -rf /var/cache/apk/* && \
|
|
|
|
rm -rf /root/.cache/ && \
|
|
|
|
rm -rf /tmp/*
|
2020-03-07 14:52:02 +00:00
|
|
|
|
|
|
|
USER root
|
|
|
|
CMD []
|
2020-03-15 12:21:36 +00:00
|
|
|
ENTRYPOINT ["/usr/local/bin/docker-tidy gc"]
|