-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Dockerfile
25 lines (18 loc) 路 687 Bytes
/
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
FROM php:8.3-fpm-alpine
WORKDIR /app
RUN apk --update upgrade \
&& apk add --no-cache autoconf automake make gcc g++ git bash icu-dev libzip-dev rabbitmq-c rabbitmq-c-dev linux-headers
RUN pecl install apcu-5.1.23 && pecl install amqp-2.1.1 && pecl install xdebug-3.3.0
RUN docker-php-ext-install -j$(nproc) \
bcmath \
opcache \
intl \
zip \
pdo_mysql
RUN docker-php-ext-enable amqp apcu opcache
RUN curl -sS https://get.symfony.com/cli/installer | bash -s - --install-dir /usr/local/bin
COPY etc/infrastructure/php/ /usr/local/etc/php/
# allow non-root users have home
RUN mkdir -p /opt/home
RUN chmod 777 /opt/home
ENV HOME /opt/home