added docker setup stuff
This commit is contained in:
commit
1b181611e1
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
||||
|
8
docker-compose.yaml
Normal file
8
docker-compose.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
services:
|
||||
mdbook:
|
||||
build: .
|
||||
container_name: mdbook
|
||||
volumes:
|
||||
- "./blog:/mdbook"
|
||||
ports:
|
||||
- 80:3000
|
Loading…
Reference in New Issue
Block a user