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 .