Skip to content

Instantly share code, notes, and snippets.

@AndyPook
Created July 26, 2019 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndyPook/a36cfd8708800a4d3fdb06a1eb31eb83 to your computer and use it in GitHub Desktop.
Save AndyPook/a36cfd8708800a4d3fdb06a1eb31eb83 to your computer and use it in GitHub Desktop.
Docker file for docfx
FROM debian:stretch-slim
# Install system components
RUN apt-get update
RUN apt-get install -y curl apt-transport-https dirmngr gnupg ca-certificates unzip
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
# Import the public repository GPG keys
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
# for mono
RUN echo "deb https://download.mono-project.com/repo/debian stable-stretch main" | tee /etc/apt/sources.list.d/mono-official-stable.list
# Register the Microsoft Product feed
RUN echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" > /etc/apt/sources.list.d/microsoft.list
# Update the list of products
RUN apt-get update
# Install PowerShell
RUN apt-get install -y --allow-unauthenticated powershell
# Install mono
RUN apt-get install -y mono-devel
# Install docfx
RUN curl -L https://github.com/dotnet/docfx/releases/download/v2.42.4/docfx.zip >docfx.zip
RUN unzip docfx.zip -d /docfx
CMD pwsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment