Skip to content

Commit

Permalink
docker: unlimit POST upload size, UB-Mannheim#136
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed May 14, 2021
1 parent 290b202 commit fb6e529
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fb6e529

Please sign in to comment.