Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

allow podman build

Aidan Stein1d38367e7951
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 \