File tree 1 file changed +12
-1
lines changed
autoinstrumentation/python
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 9
9
# - Grant the necessary access to `/autoinstrumentation` directory. `chmod -R go+r /autoinstrumentation`
10
10
# - For auto-instrumentation by container injection, the Linux command cp is
11
11
# used and must be availabe in the image.
12
+ # - Please note that we build twice. First time for environments with libc and second time with musl C implementations
12
13
FROM python:3.11 AS build
13
14
14
15
WORKDIR /operator-build
@@ -17,8 +18,18 @@ ADD requirements.txt .
17
18
18
19
RUN mkdir workspace && pip install --target workspace -r requirements.txt
19
20
21
+ FROM python:3.11-alpine AS build-musl
22
+
23
+ WORKDIR /operator-build
24
+
25
+ ADD requirements.txt .
26
+
27
+ RUN apk add --update --no-cache gcc musl-dev linux-headers
28
+ RUN mkdir workspace && pip install --target workspace -r requirements.txt
29
+
20
30
FROM busybox
21
31
22
- COPY --from=build /operator-build/workspace /autoinstrumentation
32
+ COPY --from=build /operator-build/workspace /autoinstrumentation/linux-x64
33
+ COPY --from=build-musl /operator-build/workspace /autoinstrumentation/linux-musl-x64
23
34
24
35
RUN chmod -R go+r /autoinstrumentation
You can’t perform that action at this time.
0 commit comments