FROM alpine:3.18 COPY . . RUN apk add --no-cache gcc musl-dev && \ gcc -shared -fPIC -Wall -Wextra -Werror numcpu_override.c -o numcpu_override.so -ldl FROM alpine:3.18 COPY /copy.sh / COPY --from=0 numcpu_override.so / ENTRYPOINT ["/copy.sh"]