Skip to content

Commit 4d07a0e

Browse files
authored
Add rust compiler to base image builder (#489)
This will be needed in order to build dd-trace-py from source in the future
1 parent 5447d89 commit 4d07a0e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ ARG runtime
77
RUN mkdir -p /build/python/lib/$runtime/site-packages
88
WORKDIR /build
99

10+
# Add Rust compiler which is needed to build dd-trace-py from source
11+
RUN curl https://sh.rustup.rs -sSf | \
12+
sh -s -- --default-toolchain stable -y
13+
ENV PATH=/root/.cargo/bin:$PATH
14+
1015
# Install datadog_lambda and dependencies from local
1116
COPY . .
1217
RUN pip install . -t ./python/lib/$runtime/site-packages

0 commit comments

Comments
 (0)