-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdev.Dockerfile
36 lines (27 loc) · 860 Bytes
/
dev.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM php:7.4-fpm-alpine
RUN apk add --no-cache \
git \
icu-dev \
libzip-dev \
postgresql-dev \
zip
RUN docker-php-ext-install \
intl \
opcache \
pdo \
pdo_pgsql \
zip
COPY --from=composer /usr/bin/composer /usr/bin/composer
ENV COMPOSER_ALLOW_SUPERUSER 1
ENV COMPOSER_MEMORY_LIMIT -1
RUN composer global require hirak/prestissimo --no-plugins --no-scripts
ARG HOST_UID
RUN if [ ! -z "${HOST_UID}" ]; then \
deluser www-data \
&& addgroup www-data \
&& adduser -u "${HOST_UID}" -G www-data -H -s /bin/sh -D www-data; \
fi
ENV WWW_DATA_UID ${HOST_UID}
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} && pecl install redis && docker-php-ext-enable redis
COPY ./config/docker/dev/symfony.pool.conf /usr/local/etc/php-fpm.d/