File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ the release.
3131 ([ #2199 ] ( https://github.com/open-telemetry/opentelemetry-demo/pull/2199 ) )
3232* [ kafka] update image to latest
3333 ([ 2194] ( https://github.com/open-telemetry/opentelemetry-demo/pull/2194 ) )
34+ * [ quote] replace debian image with latest alpine image
35+ ([ 2216] ( https://github.com/open-telemetry/opentelemetry-demo/pull/2216 ) )
3436
3537## 2.0.2
3638
Original file line number Diff line number Diff line change 22# SPDX-License-Identifier: Apache-2.0
33
44
5- FROM php:8.3-cli AS base
5+ FROM ghcr.io/mlocati/ php-extension-installer:2.7.34 AS installer
66
7- ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
8- RUN chmod +x /usr/local/bin/install-php-extensions \
9- && install-php-extensions \
10- opcache \
11- pcntl \
12- protobuf \
13- opentelemetry
14-
15- WORKDIR /var/www
16- CMD ["php" , "public/index.php" ]
17- USER www-data
18- EXPOSE ${QUOTE_PORT}
19-
20- FROM composer:2.7 AS vendor
7+ FROM composer:2.8.9 AS vendor
218
229WORKDIR /tmp/
23- COPY ./src/quote/composer.json .
10+
11+ COPY ./src/quote/composer.json composer.json
2412
2513RUN composer install \
2614 --ignore-platform-reqs \
@@ -30,6 +18,22 @@ RUN composer install \
3018 --no-dev \
3119 --prefer-dist
3220
33- FROM base AS final
34- COPY --from=vendor /tmp/vendor/ ./vendor/
35- COPY ./src/quote/ /var/www
21+ FROM php:8.4-cli-alpine3.21
22+
23+ COPY --from=installer /usr/bin/install-php-extensions /usr/local/bin/
24+
25+ RUN install-php-extensions opcache pcntl protobuf opentelemetry
26+
27+ WORKDIR /var/www
28+
29+ USER www-data
30+
31+ COPY --from=vendor /tmp/vendor/ vendor/
32+
33+ COPY ./src/quote/app/ app/
34+ COPY ./src/quote/public/ public/
35+ COPY ./src/quote/src/ src/
36+
37+ EXPOSE ${QUOTE_PORT}
38+
39+ CMD ["php" , "public/index.php" ]
You can’t perform that action at this time.
0 commit comments