From 1fc0153f1004f5ab85654fdf16eea541f520eb1b Mon Sep 17 00:00:00 2001 From: Marcello DeSales Date: Thu, 23 Nov 2023 08:54:46 -0800 Subject: [PATCH] :whale: :star2: add docker compose for build/run --- docker-compose.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..3217f769 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,22 @@ +version: "3.9" + +services: + + #### + #### 1. Place this file in a folder where the **/*.md files exist + #### 2. Adjust the port number to one available locally + #### 3. Adjust the volume path to point to the container's /src dir + #### + mdbook: + image: rust-lang/mdbook + container_name: rustlang-mdbook + platform: linux/amd64 + build: + context: . + args: + BASE_IMAGE: rustlang/rust:nightly-buster-slim + ports: + - 3000:3000 + volumes: + - ./test_book/src:/src +