Skip to content

Commit 3d0137b

Browse files
committed
update php.ini
1 parent cb6d518 commit 3d0137b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

dev/docker/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ RUN ( curl -sSLf https://github.com/mlocati/docker-php-extension-installer/relea
2121
# Install composer
2222
COPY --from=composer:latest /usr/bin/composer /bin/composer
2323

24+
# Use the default production configuration and update it as required
25+
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
26+
sed -i 's/memory_limit = 128M/memory_limit = 512M/g' "$PHP_INI_DIR/php.ini"
27+
2428
ENV APACHE_DOCUMENT_ROOT /app/public
2529
WORKDIR /app
26-
27-
RUN <<EOR
28-
# Use the default production configuration and update it as required
29-
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
30-
sed -i 's/memory_limit = 128M/memory_limit = 512M/g' "$PHP_INI_DIR/php.ini"
31-
EOR

0 commit comments

Comments
 (0)