Skip to content

Instantly share code, notes, and snippets.

@grhawk
Created May 4, 2023 23:23
Show Gist options
  • Save grhawk/86b750c3adea9bd05b2b0c0fb54f8f6f to your computer and use it in GitHub Desktop.
Save grhawk/86b750c3adea9bd05b2b0c0fb54f8f6f to your computer and use it in GitHub Desktop.
Dockerfile for hdoc image
FROM ubuntu:jammy
LABEL "Mainteiner"="Riccardo Petraglia"
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get install -y git build-essential meson llvm cmake clang libclang-dev libclang-cpp-dev xxd pkg-config openssl libssl-dev
RUN git clone https://github.com/hdoc/hdoc.git
WORKDIR /hdoc
RUN ls -l && sleep 5
RUN git checkout `git tag -l | tail -1`
RUN meson build
RUN ninja -j 4 -C build
RUN cp /hdoc/build/hdoc /bin
FROM ubuntu:jammy
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get install --no-install-recommends -y llvm libclang-dev libclang-cpp-dev
WORKDIR /bin
COPY --from=0 /bin/hdoc ./
CMD /bin/hdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment