2020-06-29 23:06:03 -04:00
|
|
|
FROM buildpack-deps:buster
|
2015-12-30 14:20:23 -05:00
|
|
|
|
|
|
|
COPY . /usr/src/
|
|
|
|
|
|
|
|
WORKDIR /usr/src/
|
|
|
|
|
|
|
|
RUN gcc -g -Wall -static userns.c -o /usr/bin/userns-test \
|
|
|
|
&& gcc -g -Wall -static ns.c -o /usr/bin/ns-test \
|
2016-10-21 08:34:37 -04:00
|
|
|
&& gcc -g -Wall -static acct.c -o /usr/bin/acct-test \
|
|
|
|
&& gcc -g -Wall -static setuid.c -o /usr/bin/setuid-test \
|
|
|
|
&& gcc -g -Wall -static setgid.c -o /usr/bin/setgid-test \
|
|
|
|
&& gcc -g -Wall -static socket.c -o /usr/bin/socket-test \
|
2017-05-09 09:21:19 -04:00
|
|
|
&& gcc -g -Wall -static raw.c -o /usr/bin/raw-test
|
2016-07-27 13:42:34 -04:00
|
|
|
|
|
|
|
RUN [ "$(uname -m)" = "x86_64" ] && gcc -s -m32 -nostdlib exit32.s -o /usr/bin/exit32-test || true
|