File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,14 @@ ARG runtime
7
7
RUN mkdir -p /build/python/lib/$runtime/site-packages
8
8
WORKDIR /build
9
9
10
- # Install GCC
10
+ # Install newer version of GCC on AL2
11
11
RUN set -eux; \
12
- if command -v dnf >/dev/null 2>&1; then \
13
- dnf -y install git gcc-c++; \
14
- else \
12
+ if command -v yum >/dev/null 2>&1; then \
15
13
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; \
14
+ cd /usr/bin; \
15
+ rm gcc && ln -s gcc10-gcc gcc; \
16
+ rm g++ && ln -s gcc10-g++ g++; \
17
+ rm cc && ln -s gcc10-cc cc; \
19
18
fi
20
19
21
20
# Add Rust compiler which is needed to build dd-trace-py from source
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ function docker_build_zip {
61
61
# between different python runtimes.
62
62
temp_dir=$( mktemp -d)
63
63
docker buildx build -t datadog-lambda-python-${arch} :$1 . --no-cache \
64
- --build-arg image=public.ecr.aws/lambda/ python: $1 \
64
+ --build-arg image=public.ecr.aws/sam/build- python$1 \
65
65
--build-arg runtime=python$1 \
66
66
--platform linux/${arch} \
67
67
--progress=plain \
You can’t perform that action at this time.
0 commit comments