fix build from PIP

This commit is contained in:
Ishaan Jaffer 2025-12-06 09:44:09 -08:00
parent 09dcd381d7
commit 6358be3d0b

View File

@ -10,8 +10,9 @@ ENV PATH="${HOME}/venv/bin:$PATH"
# Note: The base image has Python 3.14, but python3-dev installs Python 3.13 which conflicts.
# The -dev variant should include Python headers, but if compilation fails, we may need
# to install python-3.14-dev specifically (if available in the repo)
# rust and cargo are required for building ddtrace from source
RUN apk update && \
apk add --no-cache gcc openssl openssl-dev
apk add --no-cache gcc openssl openssl-dev rust cargo
RUN python -m venv ${HOME}/venv
RUN ${HOME}/venv/bin/pip install --no-cache-dir --upgrade pip