Skip to content

Commit

Permalink
Make make assets in Dockerfile skipable
Browse files Browse the repository at this point in the history
  • Loading branch information
joschrew committed Feb 12, 2024
1 parent 79c5b79 commit 3d501b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down

0 comments on commit 3d501b5

Please sign in to comment.