Skip to content

Commit

Permalink
feat: add musl build to python autoinstrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Mochalov committed Oct 24, 2023
1 parent c7a96ac commit db1f2a7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion autoinstrumentation/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,18 @@ ADD requirements.txt .

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

FROM python:3.11-alpine AS build-musl

WORKDIR /operator-build

ADD requirements.txt .

RUN apk add --update --no-cache gcc musl-dev linux-headers
RUN mkdir workspace && pip install --target workspace -r requirements.txt

FROM busybox

COPY --from=build /operator-build/workspace /autoinstrumentation
COPY --from=build /operator-build/workspace /autoinstrumentation/linux-x64
COPY --from=build-musl /operator-build/workspace /autoinstrumentation/linux-musl-x64

RUN chmod -R go+r /autoinstrumentation

0 comments on commit db1f2a7

Please sign in to comment.