Skip to content

Commit

Permalink
docker: unlimit POST upload size, #136
Browse files Browse the repository at this point in the history
  • Loading branch information
kba authored and stweil committed Jul 6, 2022
1 parent 35a7879 commit e27be5a
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 e27be5a

Please sign in to comment.