forked from ParrotSec/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 766 Bytes
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 766 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
25
26
FROM parrotsec/core
MAINTAINER Lorenzo "Palinuro" Faletra (palinuro@linux.it)
ENV DEBIAN_FRONTEND noninteractive
ENV VERSION 0.3
# Update system
RUN apt update;apt -y dist-upgrade; rm -rf /var/lib/apt/lists/*
# Install dependencies
RUN apt update;apt -y install git --no-install-recommends;rm -rf /var/lib/apt/lists/*
RUN apt update;apt -y install cargo --no-install-recommends;rm -rf /var/lib/apt/lists/*
# Install mdbook
RUN git clone https://github.com/Ruin0x11/mdBook.git /mdbook
WORKDIR /mdbook
RUN git checkout localization && \
cargo build --release
RUN mv /mdbook/target/release/mdbook /usr/bin/mdbook && \
chmod +x /usr/bin/mdbook && \
rm -rf /mdbook; \
mkdir /project
WORKDIR /project
CMD /usr/bin/mdbook
ENTRYPOINT /usr/bin/mdbook $@