File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
# 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
3
3
ARG TIMEZONE
4
4
5
5
ENV PHP_MEMORY_LIMIT 4000M
@@ -9,7 +9,7 @@ RUN apk add --no-cache --virtual .build-deps git tzdata bash make autoconf build
9
9
10
10
RUN docker-php-ext-install pdo
11
11
12
- RUN pecl install mongodb \
12
+ RUN pecl install -f mongodb \
13
13
&& docker-php-ext-enable mongodb
14
14
15
15
RUN rm -rf /tmp/* /etc/apk/cache/*
@@ -24,8 +24,12 @@ RUN "date"
24
24
25
25
26
26
# 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
+
29
33
RUN echo "error_reporting = E_ALL" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
30
34
RUN echo "display_startup_errors = On" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
31
35
RUN echo "display_errors = On" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
You can’t perform that action at this time.
0 commit comments