github.com/moby/docker@v26.1.3+incompatible/contrib/syscall-test/Dockerfile (about)

     1  FROM debian:bookworm-slim
     2  RUN apt-get update && apt-get install -y gcc libc6-dev --no-install-recommends
     3  
     4  COPY . /usr/src/
     5  
     6  WORKDIR /usr/src/
     7  
     8  RUN gcc -g -Wall -static userns.c -o /usr/bin/userns-test \
     9  	&& gcc -g -Wall -static ns.c -o /usr/bin/ns-test \
    10  	&& gcc -g -Wall -static acct.c -o /usr/bin/acct-test \
    11  	&& gcc -g -Wall -static setuid.c -o /usr/bin/setuid-test \
    12  	&& gcc -g -Wall -static setgid.c -o /usr/bin/setgid-test \
    13  	&& gcc -g -Wall -static socket.c -o /usr/bin/socket-test \
    14  	&& gcc -g -Wall -static raw.c -o /usr/bin/raw-test
    15  
    16  RUN [ "$(uname -m)" = "x86_64" ] && gcc -s -m32 -nostdlib exit32.s -o /usr/bin/exit32-test || true