Skip to content

Instantly share code, notes, and snippets.

@Dreamacro
Last active July 21, 2025 16:30
Show Gist options
  • Select an option

  • Save Dreamacro/ea3d666b3007b79f48b0610243a238ce to your computer and use it in GitHub Desktop.

Select an option

Save Dreamacro/ea3d666b3007b79f48b0610243a238ce to your computer and use it in GitHub Desktop.
secnetperf docker image

secnetperf

from MSQuic secnetperf

requirement

Minimum 4GB of RAM required

alias

alias secnetperf="docker run --rm --init --net host secnetperf"
FROM debian:bookworm-slim AS builder
RUN apt update && apt install -y g++ cmake make git wget && \
wget -q https://github.com/PowerShell/PowerShell/releases/download/v7.5.2/powershell_7.5.2-1.deb_amd64.deb && \
dpkg -i powershell_7.5.2-1.deb_amd64.deb && \
git clone --depth 1 https://github.com/microsoft/msquic.git && \
cd msquic && \
git submodule update --init ./submodules/openssl/ && \
pwsh -c "./scripts/build.ps1 -Config Release -Clean -Tls openssl -DisableTest -DisableTools -Static"
FROM debian:bookworm-slim
COPY --from=builder /msquic/artifacts/bin/linux/x64_Release_openssl/secnetperf /usr/bin/secnetperf
ENTRYPOINT ["/usr/bin/secnetperf"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment