summaryrefslogtreecommitdiff
path: root/src/quote/Dockerfile
diff options
context:
space:
mode:
authorSaumit <justsaumit@protonmail.com>2025-09-27 02:14:26 +0530
committerSaumit <justsaumit@protonmail.com>2025-09-27 02:14:26 +0530
commit82e03978b89938219958032efb1448cc76baa181 (patch)
tree626f3e54d52ecd49be0ed3bee30abacc0453d081 /src/quote/Dockerfile
Initial snapshot - OpenTelemetry demo 2.1.3 -f
Diffstat (limited to 'src/quote/Dockerfile')
-rw-r--r--src/quote/Dockerfile39
1 files changed, 39 insertions, 0 deletions
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"]