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 564B

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