Skip to content

Commit 5ddcfec

Browse files
committed
chore: tweaked to use docfx base image
1 parent 6a21a2c commit 5ddcfec

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

.docfx/Dockerfile.docfx

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,9 @@
11
FROM nginx:1.26.0-alpine AS base
22
RUN 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

276
ADD [".", "docfx"]
28-
RUN cp -r /opt/docfx/templates /build/docfx/templates
297

308
RUN cd docfx; \
319
docfx build

0 commit comments

Comments
 (0)