File: Dockerfile

package info (click to toggle)
opentelemetry-cpp 1.23.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,368 kB
  • sloc: cpp: 96,239; sh: 1,766; makefile: 38; python: 31
file content (24 lines) | stat: -rw-r--r-- 572 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

ARG BASE_IMAGE=ubuntu:latest
FROM ${BASE_IMAGE} AS grpc

ARG CORES=${nproc}
ARG GRPC_GIT_TAG=v1.45.2

RUN mkdir mkdir -p /opt/third_party/grpc

WORKDIR /opt/third_party/grpc

ADD CMakeLists.txt /opt/third_party/grpc

RUN mkdir build \
    && cd build \
    && cmake -DCMAKE_INSTALL_PREFIX=/opt/third_party/install \
    -DGRPC_GIT_TAG=${GRPC_GIT_TAG} /opt/third_party/grpc \
    && cmake --build . -j ${CORES} --target install

FROM scratch as final

COPY --from=grpc /opt/third_party/install /