docfx-action/Dockerfile

20 строки
659 B
Docker
Исходник Постоянная ссылка Обычный вид История

FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy
2019-10-02 04:39:39 +03:00
2023-01-04 07:12:51 +03:00
RUN dotnet --version
2019-10-02 04:39:39 +03:00
2023-01-04 07:25:40 +03:00
# Setting the path up to allow .NET tools
ENV PATH "$PATH:/root/.dotnet/tools"
RUN dotnet tool install --global docfx --version 2.77.0
2019-10-02 04:39:39 +03:00
2023-01-04 07:25:40 +03:00
# Just checking things
RUN dotnet tool list --global
2023-01-04 07:12:51 +03:00
RUN docfx -v
2019-10-02 04:39:39 +03:00
2023-01-05 05:28:49 +03:00
# 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.
2023-01-05 05:46:59 +03:00
RUN git config --system --add safe.directory '*'
2023-01-05 05:28:49 +03:00
ENTRYPOINT [ "docfx" ]