-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to latest docfx version, run with dotnet instead of mono
- Loading branch information
Showing
3 changed files
with
4 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,6 @@ | ||
FROM unityci/editor:ubuntu-2022.3.29f1-base-3 as builder | ||
RUN apt-get -q update \ | ||
&& apt-get -q install -y --no-install-recommends --allow-downgrades \ | ||
unzip | ||
RUN mkdir -p /docfx \ | ||
&& curl https://github.com/dotnet/docfx/releases/download/v2.56.7/docfx.zip -L --output /docfx/docfx.zip \ | ||
&& unzip /docfx/docfx.zip -d /docfx/ \ | ||
&& rm /docfx/docfx.zip | ||
|
||
FROM unityci/editor:ubuntu-2022.3.29f1-base-3 | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get -q update \ | ||
&& apt-get install -y --no-install-recommends gnupg ca-certificates \ | ||
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ | ||
&& echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ | ||
&& apt-get -q update \ | ||
&& apt-get -q install -y --no-install-recommends --allow-downgrades \ | ||
mono-runtime \ | ||
mono-devel \ | ||
msbuild | ||
COPY --from=builder /docfx /docfx | ||
RUN printf '#!/bin/bash\nmono /docfx/docfx.exe $@' > /usr/local/bin/docfx \ | ||
&& chmod a+x /usr/local/bin/docfx | ||
dotnet-sdk-8.0 | ||
RUN dotnet tool install docfx --version 2.76.0 --tool-path /bin |