Skip to content

Commit 58f0067

Browse files
committed
[recommendation]: switch from distroless to alpine image
Signed-off-by: Gerard Vanloo <gerard.vanloo@ibm.com>
1 parent 4e9e48f commit 58f0067

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ the release.
2323
([#2179](https://github.com/open-telemetry/opentelemetry-demo/pull/2179))
2424
* [load-generator] change image from alpine to distroless to reduce size
2525
([#2164](https://github.com/open-telemetry/opentelemetry-demo/pull/2164))
26-
* [recommendation] change image from alpine to distroless to reduce size
26+
* [recommendation] change image from bookworm to alpine to reduce size
2727
([#2164](https://github.com/open-telemetry/opentelemetry-demo/pull/2164))
2828

2929
## 2.0.2

src/recommendation/Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44

5-
FROM python:3.12-slim-bookworm AS build-venv
5+
FROM python:3.12-alpine3.21 AS build-venv
6+
7+
RUN apk update && \
8+
apk add gcc g++ linux-headers
69

710
COPY ./src/recommendation/requirements.txt requirements.txt
811

9-
RUN python -m venv venv
10-
RUN venv/bin/pip install --no-cache-dir -r requirements.txt
12+
RUN python -m venv venv && \
13+
venv/bin/pip install --no-cache-dir -r requirements.txt
1114

1215
RUN venv/bin/opentelemetry-bootstrap -a install
1316

14-
FROM gcr.io/distroless/python3-debian12:nonroot
17+
FROM python:3.12-alpine3.21
1518

1619
COPY --from=build-venv /venv/ /venv/
1720

src/recommendation/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
grpcio-health-checking==1.70.0
2-
grpcio==1.70.0
1+
grpcio-health-checking==1.71.0
2+
grpcio==1.71.0
33
opentelemetry-distro==0.51b0
44
opentelemetry-exporter-otlp-proto-grpc==1.30.0
55
python-dotenv==1.0.1

0 commit comments

Comments
 (0)