From fb6e529914c78be06687a4bdb31b02770cb78188 Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Fri, 14 May 2021 11:24:51 +0200 Subject: [PATCH] docker: unlimit POST upload size, #136 --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 46d7f6d..aec7e32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,8 @@ RUN apk add --no-cache openjdk8-jre php7 php7-json php7-openssl python3 py-lxml && mv web /ocr-fileformat-web \ && rm -rf /ocr-fileformat \ && apk del git make wget gcc libc-dev +# Disable POST upload limit +sed -i 's,post_max_size = 8M,post_max_size = 0,' /etc/php7/php.ini VOLUME /data WORKDIR /data CMD php7 -S $(hostname -i):8080 -t /ocr-fileformat-web