From 1d38367e79516c1ad394bd7d7346303a4270421f Mon Sep 17 00:00:00 2001 From: Aidan Stein Date: Sun, 3 Jul 2022 14:42:51 -0400 Subject: [PATCH] allow podman build --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 630cd367c..f9cf291ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -117,9 +117,10 @@ COPY gunicorn.conf.py . # setup docker-specific things # Use mounts to avoid copying installer files into the image # These change sometimes, but rarely -WORKDIR /usr/src/paperless/src/docker/ +ARG DOCKER_SRC=/usr/src/paperless/src/docker/ +WORKDIR ${DOCKER_SRC} -RUN --mount=type=bind,readwrite,source=docker,target=./ \ +RUN --mount=type=bind,readwrite,source=docker,target=${DOCKER_SRC} \ set -eux \ && echo "Configuring ImageMagick" \ && cp imagemagick-policy.xml /etc/ImageMagick-6/policy.xml \