Clean the Docker Registry by removing untagged repositories https://github.com/ricardobranco777/clean_registry
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 534B

1234567891011121314151617181920212223242526
  1. FROM registry:2
  2. COPY requirements.txt /tmp
  3. RUN apk --no-cache add \
  4. gcc \
  5. libc-dev \
  6. libffi-dev \
  7. openssl-dev \
  8. python3-dev \
  9. python3 && \
  10. pip3 install --no-cache-dir --upgrade pip && \
  11. pip3 install --no-cache-dir -r /tmp/requirements.txt && \
  12. apk del \
  13. gcc \
  14. libc-dev \
  15. libffi-dev \
  16. openssl-dev \
  17. python3-dev
  18. COPY clean_registry.py /usr/local/bin/clean_registry.py
  19. RUN python3 -OO -m compileall /usr/local/bin/clean_registry.py
  20. ENTRYPOINT ["/usr/bin/python3", "/usr/local/bin/clean_registry.py"]
  21. CMD []