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