Skip to content

Commit 8e7a868

Browse files
committed
install mrdocs
1 parent 583024b commit 8e7a868

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM antora/antora
2+
ARG MRDOCS_VERSION=0.8.0
23

34

45
RUN apk add --no-cache \
@@ -21,5 +22,13 @@ RUN pip install watchdog
2122

2223
RUN yarn global add @antora/lunr-extension
2324

25+
RUN apk add --no-cache curl tar xz \
26+
&& curl -L https://github.com/cppalliance/mrdocs/releases/download/v${MRDOCS_VERSION}/MrDocs-${MRDOCS_VERSION}-Linux.tar.xz \
27+
-o /tmp/mrdocs.tar.xz \
28+
&& mkdir -p /opt/mrdocs \
29+
&& tar -xJf /tmp/mrdocs.tar.xz -C /opt/mrdocs --strip-components=1 \
30+
&& rm /tmp/mrdocs.tar.xz \
31+
&& ln -s /opt/mrdocs/bin/mrdocs /usr/local/bin/mrdocs
32+
2433
USER node
2534

0 commit comments

Comments
 (0)