From 3d501b56c2893348b9a2b74fc6cb0b66c0f59b03 Mon Sep 17 00:00:00 2001 From: joschrew Date: Mon, 12 Feb 2024 16:46:26 +0100 Subject: [PATCH] Make make assets in Dockerfile skipable --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 95130fdd4..f3b2c92d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,9 +44,11 @@ WORKDIR /data CMD ["/usr/local/bin/ocrd", "--help"] FROM ocrd_core_base as ocrd_core_test +# Optionally skip make assets with this arg +ARG SKIP_ASSETS WORKDIR /build-ocrd COPY Makefile . -RUN make assets +RUN if test -z "$SKIP_ASSETS" || test $SKIP_ASSETS -eq 0 ; then make assets ; fi COPY tests ./tests COPY .gitmodules . COPY requirements_test.txt .