Skip to content

Commit db1f2a7

Browse files
author
Ilia Mochalov
committed
feat: add musl build to python autoinstrumentation
1 parent c7a96ac commit db1f2a7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

autoinstrumentation/python/Dockerfile

+11-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,18 @@ ADD requirements.txt .
1717

1818
RUN mkdir workspace && pip install --target workspace -r requirements.txt
1919

20+
FROM python:3.11-alpine AS build-musl
21+
22+
WORKDIR /operator-build
23+
24+
ADD requirements.txt .
25+
26+
RUN apk add --update --no-cache gcc musl-dev linux-headers
27+
RUN mkdir workspace && pip install --target workspace -r requirements.txt
28+
2029
FROM busybox
2130

22-
COPY --from=build /operator-build/workspace /autoinstrumentation
31+
COPY --from=build /operator-build/workspace /autoinstrumentation/linux-x64
32+
COPY --from=build-musl /operator-build/workspace /autoinstrumentation/linux-musl-x64
2333

2434
RUN chmod -R go+r /autoinstrumentation

0 commit comments

Comments
 (0)