Skip to content

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

optimize Dockerfile for caching

Enno Lohmeierf31d535da83b
diff --git a/Dockerfile b/Dockerfile
index 7295bc5c0..f02bf3336 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,11 +4,8 @@ LABEL maintainer="The Paperless Project https://github.com/danielquinn/paperless
contributors="Guy Addadi <[email protected]>, Pit Kleyersburg <[email protected]>, \
Sven Fischer <[email protected]>"
-# Copy application
+# Copy requirements file and init script
COPY requirements.txt /usr/src/paperless/
-COPY src/ /usr/src/paperless/src/
-COPY data/ /usr/src/paperless/data/
-COPY media/ /usr/src/paperless/media/
COPY scripts/docker-entrypoint.sh /sbin/docker-entrypoint.sh
# Set export and consumption directories
@@ -44,3 +41,8 @@ VOLUME ["/usr/src/paperless/data", "/usr/src/paperless/media", "/consume", "/exp
ENTRYPOINT ["/sbin/docker-entrypoint.sh"]
CMD ["--help"]
+# Copy application
+COPY src/ /usr/src/paperless/src/
+COPY data/ /usr/src/paperless/data/
+COPY media/ /usr/src/paperless/media/
+