docker-numcpu_override/Dockerfile.debian

10 lines
250 B
Text
Raw Normal View History

2024-12-26 19:59:35 +01:00
FROM debian:stable
COPY . .
RUN apt update && apt install -y gcc && \
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"]