-
Notifications
You must be signed in to change notification settings - Fork 428
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (31 loc) · 1.09 KB
/
Copy pathDockerfile
File metadata and controls
39 lines (31 loc) · 1.09 KB
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
37
38
39
ARG PHP_VERSION=8.2
FROM php:${PHP_VERSION}-alpine
ARG PHP_VERSION
RUN --mount=type=cache,target=/var/cache/apk apk add --no-cache $PHPIZE_DEPS \
libpq-dev \
librdkafka-dev \
rabbitmq-c-dev \
linux-headers && \
apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing \
gearman-dev
# Install First Party Modules
RUN docker-php-ext-install -j$(nproc) \
pcntl \
pdo_mysql \
pdo_pgsql
# Install Third Party Modules
RUN --mount=type=cache,target=/tmp/pear pecl install redis \
mongodb-1.21.0 \
gearman \
rdkafka \
xdebug && \
pecl install --configureoptions 'with-librabbitmq-dir="autodetect"' amqp
RUN docker-php-ext-enable redis mongodb gearman rdkafka xdebug amqp
COPY ./php/cli.ini /usr/local/etc/php/conf.d/.user.ini
COPY ./bin/dev_entrypoiny.sh /usr/local/bin/entrypoint.sh
RUN mv /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
RUN chmod u+x /usr/local/bin/entrypoint.sh
RUN mkdir -p /mqdev
WORKDIR /mqdev
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
CMD ["/usr/local/bin/entrypoint.sh"]

