Skip to content

Instantly share code, notes, and snippets.

@jtbandes
Created March 23, 2022 18:23
Show Gist options
  • Save jtbandes/0a064374e764892f2a32ab76105e25d9 to your computer and use it in GitHub Desktop.
Save jtbandes/0a064374e764892f2a32ab76105e25d9 to your computer and use it in GitHub Desktop.
FROM ubuntu:jammy
RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests \
git \
python3 \
python3-pip \
cmake \
clang \
llvm-dev \
libclang-dev \
pkg-config \
libssl-dev \
ninja-build \
xxd \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install --user meson
RUN git clone https://github.com/hdoc/hdoc.git /hdoc --depth 1 --branch 1.2.2 --single-branch
WORKDIR /hdoc
RUN sed -i "s/^project('hdoc', 'cpp'/project('hdoc', 'cpp', 'c'/" meson.build
RUN ~/.local/bin/meson build
RUN ninja -C build hdoc
RUN /hdoc/build/hdoc --version
WORKDIR /data
ENTRYPOINT ["/hdoc/build/hdoc"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment