Skip to content

Instantly share code, notes, and snippets.

@fabarea
Last active November 28, 2019 06:21
Show Gist options
  • Save fabarea/179bd08870127c8c98785fc22ea5de50 to your computer and use it in GitHub Desktop.
Save fabarea/179bd08870127c8c98785fc22ea5de50 to your computer and use it in GitHub Desktop.
Docker Example Doxygen

Build

Build and remove old images if existing.

docker build --rm -t fab/doxygen .
docker build --rm -t fab/doxygen:1.0 .

Usage

docker run -v "$PWD":/src --rm fab/doxygen --version
docker run -v "$PWD":/src --rm fab/doxygen my/doxygen.conf
docker run -it --entrypoint /bin/bash fab/doxygen.conf
FROM ubuntu
MAINTAINER "Fabien Udriot" <fabidule@omic.ch>
# Install doxygen dependencies
RUN apt update \
&& DEBIAN_FRONTEND=noninteractive apt -y install graphviz \
&& apt -y install doxygen
# NOTE: must use json syntax process is not started in a subshell (and signals are passed correctly)
WORKDIR /src
ENTRYPOINT ["/usr/bin/doxygen"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment