forked from nikeee/docfx-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 907 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (20 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM mono:latest
RUN apt update -yqq \
&& apt install -yqq gpg apt-transport-https \
&& curl -o - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.asc.gpg \
&& curl -o /etc/apt/sources.list.d/microsoft-prod.list https://packages.microsoft.com/config/debian/9/prod.list \
&& chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg \
/etc/apt/sources.list.d/microsoft-prod.list \
&& apt update -yqq \
&& apt install -yqq \
unzip \
git \
dotnet-sdk-3.1 \
wkhtmltopdf \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="/docfx:${PATH}"
ENTRYPOINT [ "docfx" ]
ADD ./entrypoint.sh /usr/local/bin/docfx
ADD https://github.com/dotnet/docfx/releases/download/v2.62.1/docfx-linux-x64-v2.62.1.zip /
RUN unzip docfx-linux-x64-v2.62.1.zip -d /docfx && \
rm docfx-linux-x64-v2.62.1.zip