mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
21 lines
717 B
Docker
21 lines
717 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
ARG BASE_DEBIAN_DISTRO=trixie
|
|
|
|
FROM debian:${BASE_DEBIAN_DISTRO}-slim
|
|
RUN apt-get update && apt-get install -y gcc libc6-dev --no-install-recommends
|
|
|
|
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 \
|
|
&& 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 \
|
|
&& gcc -g -Wall -static raw.c -o /usr/bin/raw-test
|
|
|
|
RUN [ "$(uname -m)" = "x86_64" ] && gcc -s -m32 -nostdlib exit32.s -o /usr/bin/exit32-test || true
|