docker-numcpu_override/Dockerfile
nyyu 853378b46d
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: init
2024-04-30 09:31:02 +02:00

10 lines
247 B
Docker

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"]