Created
July 26, 2019 11:14
-
-
Save AndyPook/a36cfd8708800a4d3fdb06a1eb31eb83 to your computer and use it in GitHub Desktop.
Docker file for docfx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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