datalad-clone-action/Dockerfile
Michael Hanke 5555b0c12b
All checks were successful
Exercise test cases / clone-origin-repo (push) Successful in 46s
Exercise test cases / clone-custom-path (push) Successful in 49s
Exercise test cases / clone-custom-ref (push) Successful in 56s
Exercise test cases / clone-recursive (push) Successful in 55s
Exercise test cases / clone-recursive-no-data (push) Successful in 57s
Exercise test cases / clone-recursive-limited (push) Successful in 1m0s
Exercise test cases / clone-get-deep-content (push) Successful in 1m2s
Strip unnecessary content from Docker image
Avoids ~40MB image bloat.
2025-07-21 16:55:16 +02:00

6 lines
441 B
Docker

FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y git-annex python3-pip --no-install-recommends && apt-get autoclean && rm -rf /var/lib/apt/lists ; find /usr/share/doc -mindepth 2 -maxdepth 2 ! -name copyright -exec rm -rf {} \;
RUN pip install --break-system-packages datalad-next && rm -rf /root/.cache
RUN git config --system --add datalad.extensions.load next
COPY entrypoint.py /entrypoint.py
ENTRYPOINT /entrypoint.py