-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.rust-docs
More file actions
24 lines (18 loc) · 908 Bytes
/
Dockerfile.rust-docs
File metadata and controls
24 lines (18 loc) · 908 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 ivanderk/rust
#ENV USER=root
#WORKDIR /source
RUN npm install http-server -g && \
cargo install mdbook && \
mkdir /target
RUN cd /source && git clone https://github.com/rust-lang/book.git && \
cd book/second-edition && mdbook build && \
mv /source/book/second-edition/book /target && \
cd /source && git clone https://github.com/rust-lang-nursery/nomicon.git && \
cd nomicon && mdbook build && \
mv /source/nomicon/book /target/nomicon && \
cd /source && git clone https://github.com/rust-lang-nursery/reference.git && \
cd reference && mdbook build && \
mv /source/reference/book /target/reference
EXPOSE 8080
WORKDIR /target
CMD ["/usr/lib/node_modules/http-server/bin/http-server", "."]