Skip to content

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

Upgrade Docker image to Alpine 3.11

Johannes Wienke19b9b2a396d2
diff --git a/Dockerfile b/Dockerfile
index 30eb3a5bc..608254648 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine:3.10
+FROM alpine:3.11
LABEL maintainer="The Paperless Project https://github.com/the-paperless-project/paperless" \
contributors="Guy Addadi <[email protected]>, Pit Kleyersburg <[email protected]>, \
@@ -52,6 +52,9 @@ RUN apk add --no-cache \
adduser -D -u 1000 -G paperless -h /usr/src/paperless paperless && \
chown -Rh paperless:paperless /usr/src/paperless && \
mkdir -p $PAPERLESS_EXPORT_DIR && \
+# Avoid setrlimit warnings
+# See: https://gitlab.alpinelinux.org/alpine/aports/issues/11122
+ echo 'Set disable_coredump false' >> /etc/sudo.conf && \
# Setup entrypoint
chmod 755 /sbin/docker-entrypoint.sh
@@ -67,4 +70,4 @@ COPY data/ /usr/src/paperless/data/
COPY media/ /usr/src/paperless/media/
# Collect static files
-RUN sudo -HEu paperless /usr/src/paperless/src/manage.py collectstatic --clear --no-input
\ No newline at end of file
+RUN sudo -HEu paperless /usr/src/paperless/src/manage.py collectstatic --clear --no-input