added docker setup stuff

This commit is contained in:
Michael Scalzetti 2023-01-01 18:20:19 -05:00
commit 1b181611e1
2 changed files with 20 additions and 0 deletions

12
Dockerfile Normal file
View 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
View File

@ -0,0 +1,8 @@
services:
mdbook:
build: .
container_name: mdbook
volumes:
- "./blog:/mdbook"
ports:
- 80:3000