docker-numcpu_override/Dockerfile

10 lines
247 B
Text
Raw Normal View History

FROM alpine:3.21
2024-04-30 09:12:09 +02:00
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.21
2024-04-30 09:12:09 +02:00
COPY /copy.sh /
COPY --from=0 numcpu_override.so /
ENTRYPOINT ["/copy.sh"]