Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ ARG runtime
RUN mkdir -p /build/python/lib/$runtime/site-packages
WORKDIR /build

# Install newer version of GCC on AL2
RUN set -eux; \
if command -v yum >/dev/null 2>&1; then \
yum -y install git gcc10 gcc10-c++; \
cd /usr/bin; \
rm gcc && ln -s gcc10-gcc gcc; \
rm g++ && ln -s gcc10-g++ g++; \
rm cc && ln -s gcc10-cc cc; \
fi

# Add Rust compiler which is needed to build dd-trace-py from source
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain stable -y
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_layers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function docker_build_zip {
# between different python runtimes.
temp_dir=$(mktemp -d)
docker buildx build -t datadog-lambda-python-${arch}:$1 . --no-cache \
--build-arg image=public.ecr.aws/docker/library/python:$1 \
--build-arg image=public.ecr.aws/sam/build-python$1:1 \
--build-arg runtime=python$1 \
--platform linux/${arch} \
--progress=plain \
Expand Down
Loading