Skip to content

Commit

Permalink
Build performance improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard-melnytskyi committed Dec 14, 2024
1 parent 7319381 commit aad550a
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions alpine/3.20/8.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ ARG PHP_RUN_DEPS="\
libxpm \
libxslt \
libzip \
protobuf \
grpc \
rabbitmq-c"

ARG PHP_BUILD_DEPS="\
Expand Down Expand Up @@ -69,15 +67,15 @@ ARG PHP_EXTENSIONS="\

ARG PHP_PECL_EXTENSIONS="\
apcu \
opentelemetry \
protobuf \
grpc \
redis"

ARG ADDITIONAL_PHP_PECL_EXTENSIONS="\
pcov \
xdebug \
xhprof \
opentelemetry \
protobuf \
grpc \
amqp"

ARG GRAPHVIZ_BUILD_DEPS="\
Expand Down Expand Up @@ -191,6 +189,15 @@ COPY context/php/conf.d/90-opcache.ini /usr/local/etc/php/conf.d/
COPY context/php/conf.d/92-session.ini /usr/local/etc/php/conf.d/
COPY context/php/disabled /usr/local/etc/php/disabled

#OTEL: disable code instrumentattion by default
ENV OTEL_SDK_DISABLED=true
ENV OTEL_PHP_DISABLED_INSTRUMENTATIONS="all"

#OTEL: Disable OTEL related extensions and keep original configs.
RUN mv /usr/local/etc/php/conf.d/docker-php-ext-opentelemetry.ini /usr/local/etc/php/disabled/opentelemetry.ini
RUN mv /usr/local/etc/php/conf.d/docker-php-ext-protobuf.ini /usr/local/etc/php/disabled/protobuf.ini
RUN mv /usr/local/etc/php/conf.d/docker-php-ext-grpc.ini /usr/local/etc/php/disabled/grpc.ini

WORKDIR /data

# Install composer
Expand Down

0 comments on commit aad550a

Please sign in to comment.