File tree 1 file changed +1
-23
lines changed
1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change 1
1
FROM nginx:1.26.0-alpine AS base
2
2
RUN rm -rf /usr/share/nginx/html/*
3
3
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
26
5
27
6
ADD [".", "docfx"]
28
- RUN cp -r /opt/docfx/templates /build/docfx/templates
29
7
30
8
RUN cd docfx; \
31
9
docfx build
You can’t perform that action at this time.
0 commit comments