File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed
Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change 11FROM nginx:1.26.0-alpine AS base
22RUN rm -rf /usr/share/nginx/html/*
33
4- FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build
5-
6- ENV DOTNET_ROOT=/root/.dotnet
7- ENV PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
8-
9- RUN apt update \
10- && apt install git
11-
12- RUN git clone https://github.com/dotnet/docfx.git \
13- && mkdir -p /opt/docfx
14-
15- RUN cd docfx \
16- && cp -r --parents templates/default /opt/docfx \
17- && cp -r --parents templates/modern /opt/docfx
18-
19- RUN curl -sSL --output dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
20- && chmod +x ./dotnet-install.sh \
21- && ./dotnet-install.sh --runtime aspnetcore --channel 8.0
22-
23- RUN dotnet tool install --global docfx --version 2.75.3
24-
25- WORKDIR /build
4+ FROM codebeltnet/docfx:2.75.3 AS build
265
276ADD [".", "docfx"]
28- RUN cp -r /opt/docfx/templates /build/docfx/templates
297
308RUN cd docfx; \
319 docfx build
You can’t perform that action at this time.
0 commit comments