Skip to content

Instantly share code, notes, and snippets.

@unasuke
Created April 24, 2022 18:10
Show Gist options
  • Save unasuke/382367d32df4ba25c224d72ff43295e9 to your computer and use it in GitHub Desktop.
Save unasuke/382367d32df4ba25c224d72ff43295e9 to your computer and use it in GitHub Desktop.
msh3app build
FROM ubuntu:22.04
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y git build-essential pkg-config cmake
WORKDIR /root
RUN git clone --depth 1 --recursive https://github.com/nibanks/msh3
RUN mkdir msh3/build
WORKDIR /root/msh3/build
RUN cmake -G 'Unix Makefiles' -DMSH3_TOOL=on ..
RUN cmake --build .
RUN cmake --install .
CMD /usr/local/lib/msh3app www.google.com
# $ docker run --rm msh3
# HTTP/3 GET https://www.google.com/
#
# :status:200
# date:Sun, 24 Apr 2022 18:09:18 GMT
# expires:-1
# cache-control:private, max-age=0
# content-type:text/html; charset=ISO-8859-1
# p3p:CP="This is not a P3P policy! See g.co/p3phelp for more info."
# server:gws
# x-xss-protection:0
# x-frame-options:S
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment