Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
05dfd7068d | ||
|
26cf9099ae | ||
|
a29df509b6 |
12
Dockerfile
12
Dockerfile
@ -1,12 +0,0 @@
|
|||||||
FROM rust:latest
|
|
||||||
|
|
||||||
RUN cargo install mdbook
|
|
||||||
RUN apt-get update && apt-get install -y vim git
|
|
||||||
|
|
||||||
RUN mkdir -p /mdbook
|
|
||||||
WORKDIR /mdbook
|
|
||||||
|
|
||||||
EXPOSE 3000
|
|
||||||
|
|
||||||
CMD mdbook serve -n 0.0.0.0
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
|||||||
services:
|
services:
|
||||||
mdbook:
|
mdbook:
|
||||||
build: .
|
image: peaceiris/mdbook
|
||||||
container_name: mdbook
|
container_name: mdbook
|
||||||
volumes:
|
volumes:
|
||||||
- "./blog:/mdbook"
|
- "./blog:/mdbook"
|
||||||
ports:
|
ports:
|
||||||
- 80:3000
|
- 80:3000
|
||||||
restart: always
|
restart: always
|
||||||
|
entrypoint: ['/usr/bin/mdbook', 'serve', '/mdbook', '-n', '0.0.0.0']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user