Skip to content

Instantly share code, notes, and snippets.

@richlander
Last active August 16, 2023 21:47
Dockerfile -- Add libmsquic
#syntax=docker/dockerfile:1
FROM scratch AS installer
ADD https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb /
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-preview-jammy
RUN --mount=from=installer,source=/packages-microsoft-prod.deb,target=/packages-microsoft-prod.deb \
<<EOF
set -e
dpkg -i packages-microsoft-prod.deb
apt update
apt install -y libmsquic
apt remove -y packages-microsoft-prod
rm -rf /var/lib/apt/lists/*
EOF
@richlander
Copy link
Author

Here is the cost of adding libmsquic.

It is: 130MB as compared to 116MB. So, +14MB. Other baseline sizes are also listed.

$ docker images | grep jammy
runtime-deps-jammy-with-msquic          latest                                 053d1085b107   About a minute ago   130MB
mcr.microsoft.com/dotnet/aspnet         8.0-preview-jammy-chiseled-composite   5b4cb752ac29   7 days ago           99.1MB
mcr.microsoft.com/dotnet/aspnet         8.0-preview-jammy-chiseled             4449d107a795   7 days ago           108MB
mcr.microsoft.com/dotnet/runtime-deps   8.0-preview-jammy                      0d6fbaf75eb2   7 days ago           116MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment