commit 1b181611e104e1a73b6b889db6a54211d88b87c5 Author: Michael Scalzetti Date: Sun Jan 1 18:20:19 2023 -0500 added docker setup stuff diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..60ee7aa --- /dev/null +++ b/Dockerfile @@ -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 + diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..74d950d --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,8 @@ +services: + mdbook: + build: . + container_name: mdbook + volumes: + - "./blog:/mdbook" + ports: + - 80:3000