🐳 🌟 add docker compose for build/run

This commit is contained in:
Marcello DeSales 2023-11-23 08:54:46 -08:00
parent f68dab9f66
commit 1fc0153f10
No known key found for this signature in database
GPG Key ID: DC4E536EE3A84B25
1 changed files with 22 additions and 0 deletions

22
docker-compose.yaml Normal file
View File

@ -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