-
Notifications
You must be signed in to change notification settings - Fork 866
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile to the project docfx
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
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
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" ] |