docfx-action/Dockerfile

20 строки
659 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy
RUN dotnet --version
# Setting the path up to allow .NET tools
ENV PATH "$PATH:/root/.dotnet/tools"
RUN dotnet tool install --global docfx --version 2.77.0
# Just checking things
RUN dotnet tool list --global
RUN docfx -v
# HACK: This effectively negates a git security patch that requires file ownership to match.
# Doing this because it does not appear that there is a standard way to address this in our container setup.
# A follow-up will likely be to take in a parameter and set the safe directory when that parameter is passed in.
RUN git config --system --add safe.directory '*'
ENTRYPOINT [ "docfx" ]