Skip to content

Commit dc09a26

Browse files
committed
build: use lambda image to build to ensure GLIBC version compat
1 parent db67384 commit dc09a26

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RUN mkdir -p /build/python/lib/$runtime/site-packages
88
WORKDIR /build
99

1010
# Add Rust compiler which is needed to build dd-trace-py from source
11+
RUN dnf install git gcc-c++ -y || yum install git gcc-c++ -y
1112
RUN curl https://sh.rustup.rs -sSf | \
1213
sh -s -- --default-toolchain stable -y
1314
ENV PATH=/root/.cargo/bin:$PATH

scripts/build_layers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function docker_build_zip {
6161
# between different python runtimes.
6262
temp_dir=$(mktemp -d)
6363
docker buildx build -t datadog-lambda-python-${arch}:$1 . --no-cache \
64-
--build-arg image=public.ecr.aws/docker/library/python:$1 \
64+
--build-arg image=public.ecr.aws/lambda/python:$1 \
6565
--build-arg runtime=python$1 \
6666
--platform linux/${arch} \
6767
--progress=plain \

0 commit comments

Comments
 (0)