Skip to content

Commit 788a0d6

Browse files
committed
upgrade to php 7.4
1 parent be1d6c8 commit 788a0d6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: store/Dockerfile

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Based on https://github.com/docker-library/php/blob/35aedb29009b46af6ea1009c9405d01d3f66968e/7.2/alpine3.7/fpm/Dockerfile
2-
FROM php:7.2.19-fpm-alpine
2+
FROM php:7.4.20-fpm-alpine3.13
33
ARG TIMEZONE
44

55
ENV PHP_MEMORY_LIMIT 4000M
@@ -9,7 +9,7 @@ RUN apk add --no-cache --virtual .build-deps git tzdata bash make autoconf build
99

1010
RUN docker-php-ext-install pdo
1111

12-
RUN pecl install mongodb \
12+
RUN pecl install -f mongodb \
1313
&& docker-php-ext-enable mongodb
1414

1515
RUN rm -rf /tmp/* /etc/apk/cache/*
@@ -24,8 +24,12 @@ RUN "date"
2424

2525

2626
# Install xdebug
27-
RUN pecl install xdebug
28-
RUN docker-php-ext-enable xdebug
27+
28+
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
29+
&& pecl install xdebug-3.0.0 \
30+
&& docker-php-ext-enable xdebug \
31+
&& apk del -f .build-deps
32+
2933
RUN echo "error_reporting = E_ALL" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
3034
RUN echo "display_startup_errors = On" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
3135
RUN echo "display_errors = On" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

0 commit comments

Comments
 (0)