engelsystem/docker/dev/Dockerfile

21 lines
885 B
Docker
Raw Normal View History

2019-10-14 23:36:26 +02:00
# Engelsystem PHP FPM development image including Xdebug
2021-12-01 00:27:46 +01:00
FROM php:8-fpm-alpine AS es_php_fpm
2019-10-14 23:36:26 +02:00
WORKDIR /var/www
RUN apk add --no-cache icu-dev $PHPIZE_DEPS && \
pecl install pcov xdebug && \
2019-10-14 23:36:26 +02:00
docker-php-ext-install intl pdo_mysql && \
docker-php-ext-enable pcov xdebug
2021-01-03 01:47:39 +01:00
RUN echo -e "xdebug.mode=debug\nxdebug.discover_client_host=1\n" >> /usr/local/etc/php/conf.d/xdebug.ini
2019-10-14 23:36:26 +02:00
ENV TRUSTED_PROXIES 10.0.0.0/8,::ffff:10.0.0.0/8,\
127.0.0.0/8,::ffff:127.0.0.0/8,\
172.16.0.0/12,::ffff:172.16.0.0/12,\
192.168.0.0/16,::ffff:192.168.0.0/16,\
::1/128,fc00::/7,fec0::/10
# Engelsystem development workspace
# Contains all tools required to build / manage the system
FROM es_php_fpm AS es_workspace
2022-04-12 22:39:43 +02:00
RUN apk add --no-cache gettext nodejs npm yarn
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer