File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,17 @@ ARG runtime
77RUN mkdir -p /build/python/lib/$runtime/site-packages
88WORKDIR /build
99
10+ # Install GCC
11+ RUN set -eux; \
12+ if command -v dnf >/dev/null 2>&1; then \
13+ dnf -y install git gcc-c++; \
14+ else \
15+ yum -y install git gcc10 gcc10-c++; \
16+ ln -s /usr/bin/gcc10-gcc /usr/bin/gcc; \
17+ ln -s /usr/bin/gcc10-g++ /usr/bin/g++; \
18+ ln -s /usr/bin/gcc10-cc /usr/bin/cc; \
19+ fi
20+
1021# Add Rust compiler which is needed to build dd-trace-py from source
1122RUN curl https://sh.rustup.rs -sSf | \
1223 sh -s -- --default-toolchain stable -y
Original file line number Diff line number Diff 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 \
You can’t perform that action at this time.
0 commit comments