File tree Expand file tree Collapse file tree 3 files changed +19
-33
lines changed Expand file tree Collapse file tree 3 files changed +19
-33
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -1909,6 +1909,11 @@ opcache.huge_code_pages=1
1909
1909
; SSL stream context option.
1910
1910
; openssl.capath=
1911
1911
1912
+
1913
+
1914
+ opcache.jit_buffer_size =128M
1915
+ opcache.jit =tracing
1916
+
1912
1917
; Local Variables:
1913
1918
; tab-width: 4
1914
1919
; End:
Original file line number Diff line number Diff line change 1
1
FROM php:8.3-cli
2
2
3
- RUN docker-php-ext-install pdo_mysql > /dev/null
3
+ RUN apt-get update -yqq > /dev/null && apt-get install -yqq git unzip > /dev/null
4
+ COPY --from=composer/composer:latest-bin --link /composer /usr/local/bin/composer
4
5
5
- # Workaround solution for installing ext-sockets for PHP 8.0
6
- # See https://github.com/docker-library/php/issues/1245
7
- RUN CFLAGS="$CFLAGS -D_GNU_SOURCE" docker-php-ext-install sockets > /dev/null
6
+ RUN docker-php-ext-install \
7
+ opcache \
8
+ pdo_mysql \
9
+ sockets > /dev/null
10
+
11
+ # RoadRunner >= 2024.x.x requires protobuf extensions to be installed
12
+ ARG PROTOBUF_VERSION="4.26.1"
13
+ RUN pecl channel-update pecl.php.net
14
+ RUN MAKEFLAGS="-j $(nproc)" pecl install protobuf-${PROTOBUF_VERSION} > /dev/null
8
15
9
- ADD ./ /spiral
10
16
WORKDIR /spiral
17
+ COPY --link . .
11
18
12
19
# composer and opcache settings
13
- COPY php/* /usr/local/etc/php/
14
- RUN chmod +x /usr/local/etc/php/install-composer.sh && /usr/local/etc/php/install-composer.sh
15
-
16
- # install dependencies
17
- RUN apt-get update -yqq > /dev/null && apt-get install -yqq git unzip > /dev/null
18
- RUN php composer.phar install --optimize-autoloader --classmap-authoritative --no-dev
19
-
20
- # RoadRunner >= 2024.x.x requires protobuf and grpc extensions to be installed
21
- ARG PROTOBUF_VERSION="4.26.1"
22
- RUN pecl channel-update pecl.php.net
23
- RUN MAKEFLAGS="-j $(nproc)" pecl install protobuf-${PROTOBUF_VERSION} grpc
20
+ COPY --link php/php.ini /usr/local/etc/php/
21
+ RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
24
22
25
23
# pre-configure
26
24
RUN ./vendor/bin/rr get-binary > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments