• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1FROM python:3.9-slim-bookworm
2
3RUN apt-get update -y && apt-get upgrade -y && apt-get install -y build-essential clang curl
4
5WORKDIR /workdir
6
7RUN ln -s /usr/bin/python3 /usr/bin/python
8RUN mkdir /artifacts
9
10COPY . .
11RUN tools/bazel build -c dbg //examples/python/observability/csm:csm_greeter_client
12RUN cp -rL /workdir/bazel-bin/examples/python/observability/csm/csm_greeter_client* /artifacts/
13
14FROM python:3.9-slim-bookworm
15
16RUN apt-get update -y \
17  && apt-get install -y python3 \
18  && apt-get -y autoremove \
19  && apt-get install -y curl \
20  && rm -rf /var/lib/apt/lists/*
21
22RUN ln -s /usr/bin/python3 /usr/bin/python
23
24COPY --from=0 /artifacts ./
25
26ENTRYPOINT ["/csm_greeter_client"]
27