Last active
July 9, 2022 08:40
-
-
Save haohaolee/1a98061e1c846bf02d29ad5b860b5a1d to your computer and use it in GitHub Desktop.
Static slirp build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax=docker/dockerfile:1.4 | |
# DOCKER_BUILDKIT=1 docker build -t tag . | |
FROM debian:latest AS build | |
MAINTAINER haohaolee <[email protected]> | |
WORKDIR /root | |
RUN <<eot bash | |
apt update | |
apt install -y musl-dev musl-tools cdbs wget dpkg-dev devscripts | |
wget http://deb.debian.org/debian/pool/main/s/slirp/slirp_1.0.17.orig.tar.gz | |
wget http://deb.debian.org/debian/pool/main/s/slirp/slirp_1.0.17-11.debian.tar.xz | |
tar xf slirp_1.0.17.orig.tar.gz | |
cd slirp-1.0.17 | |
tar xf ../slirp_1.0.17-11.debian.tar.xz | |
debuild --set-envvar CC="musl-gcc -static -D__P\(x\)=x" -b -uc -us | |
eot | |
# Binary is at `slirp-1.0.17/src/slirp-fullbolt` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment