Skip to content

Commit ed51499

Browse files
committed
Increase import max filesize
1 parent cc27cf4 commit ed51499

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
FROM php:8.0-cli-alpine
1+
FROM php:8.1-cli-alpine
22

33
WORKDIR /opt/mongodb-php-gui
44
COPY . /opt/mongodb-php-gui
55

6-
RUN apk update && apk add --no-cache --virtual .build-deps autoconf build-base openssl-dev curl \
7-
&& pecl install mongodb-1.10.0 && docker-php-ext-enable mongodb \
6+
RUN echo "; PHP settings added by MongoDB PHP GUI (MPG)" > /usr/local/etc/php/conf.d/mpg-docker-php.ini \
7+
&& echo "upload_max_filesize = 25M" >> /usr/local/etc/php/conf.d/mpg-docker-php.ini \
8+
&& echo "post_max_size = 25M" >> /usr/local/etc/php/conf.d/mpg-docker-php.ini \
9+
&& apk update && apk add --no-cache --virtual .build-deps autoconf build-base openssl-dev curl \
10+
&& pecl install mongodb-1.13.0 && docker-php-ext-enable mongodb \
811
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
912
&& apk del .build-deps \
1013
&& composer install \

0 commit comments

Comments
 (0)