Skip to content

Commit

Permalink
feat: Dockerfile (#9392)
Browse files Browse the repository at this point in the history
Add Dockerfile to the project docfx
  • Loading branch information
JM2K69 authored Nov 7, 2023
1 parent b670cf9 commit d3a342c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim

# Add dotnet tools to path.
ENV PATH="${PATH}:/root/.dotnet/tools"

# Install DocFX as a dotnet tool.
RUN dotnet tool update -g docfx && \
docfx --version

# Install dependences for chromium PDF.
RUN apt-get update -qq && apt-get install -y libglib2.0-0 libnss3 libnspr4 \
libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libdbus-1-3 libxcb1 \
libxkbcommon0 libatspi2.0-0 libx11-6 libxcomposite1 \
libxdamage1 libxext6 libxfixes3 libxrandr2 libgbm1 \
libpango-1.0-0 libcairo2 libasound2

WORKDIR /opt/prj
VOLUME [ "/opt/prj" ]

ENTRYPOINT [ "docfx" ]

0 comments on commit d3a342c

Please sign in to comment.