docker-numcpu_override/Dockerfile
Renovate Bot e5be681d2d
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
chore(deps): update alpine docker tag to v3.21
2024-12-06 00:01:24 +01:00

9 lines
247 B
Docker

FROM alpine:3.21
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
COPY /copy.sh /
COPY --from=0 numcpu_override.so /
ENTRYPOINT ["/copy.sh"]