From 1b181611e104e1a73b6b889db6a54211d88b87c5 Mon Sep 17 00:00:00 2001 From: Michael Scalzetti Date: Sun, 1 Jan 2023 18:20:19 -0500 Subject: [PATCH] added docker setup stuff --- Dockerfile | 12 ++++++++++++ docker-compose.yaml | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yaml 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