From 82e03978b89938219958032efb1448cc76baa181 Mon Sep 17 00:00:00 2001 From: Saumit Date: Sat, 27 Sep 2025 02:14:26 +0530 Subject: Initial snapshot - OpenTelemetry demo 2.1.3 -f --- src/quote/Dockerfile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/quote/Dockerfile (limited to 'src/quote/Dockerfile') diff --git a/src/quote/Dockerfile b/src/quote/Dockerfile new file mode 100644 index 0000000..9811889 --- /dev/null +++ b/src/quote/Dockerfile @@ -0,0 +1,39 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +FROM ghcr.io/mlocati/php-extension-installer:2.7.34 AS installer + +FROM docker.io/library/composer:2.8.9 AS vendor + +WORKDIR /tmp/ + +COPY ./src/quote/composer.json composer.json + +RUN composer install \ + --ignore-platform-reqs \ + --no-interaction \ + --no-plugins \ + --no-scripts \ + --no-dev \ + --prefer-dist + +FROM docker.io/library/php:8.4-cli-alpine3.22 + +COPY --from=installer /usr/bin/install-php-extensions /usr/local/bin/ + +RUN install-php-extensions opcache pcntl protobuf opentelemetry + +WORKDIR /var/www + +USER www-data + +COPY --from=vendor /tmp/vendor/ vendor/ + +COPY ./src/quote/app/ app/ +COPY ./src/quote/public/ public/ +COPY ./src/quote/src/ src/ + +EXPOSE ${QUOTE_PORT} + +CMD ["php", "public/index.php"] -- cgit v1.2.3