File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ # syntax = docker/dockerfile:experimental
2+ #
3+ # Requires Docker v18.06 or later and BuildKit mode to use cache mount
4+ # Docker v18.06 also requires the daemon to be running in experimental mode.
5+ #
6+ # $ export DOCKER_BUILDKIT=1
7+ #
8+ # See https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/experimental.md
19#
210# To build for arm, see https://www.docker.com/blog/getting-started-with-docker-for-arm-on-linux/
311#
@@ -17,7 +25,9 @@ FROM debian:buster AS build-debian
1725RUN apt update && apt install -y libtiff5-dev libtesseract-dev tesseract-ocr-eng build-essential cmake pkg-config
1826
1927FROM registry.gitlab.com/pld-linux/pld AS build-pld
20- RUN poldek -u make cmake libtiff-devel tesseract-devel
28+ RUN --mount=type=cache,id=poldek,target=/var/cache/poldek \
29+ poldek -O 'keep downloads=yes' --up -u \
30+ make cmake libtiff-devel tesseract-devel
2131
2232FROM build-$TARGET AS build
2333WORKDIR /build
You can’t perform that action at this time.
0 commit comments