Files
leptos-book/.devcontainer/docker-compose.yml
Jedd Dryden 0b2d6a9c23 Dev Container Implementation and README.md Updates (#47)
* Implemented Dev Container

* Added extra extensions

* Improved `README.md`

* Typo

* Update .devcontainer/Dockerfile

Co-authored-by: Toby Scott <hi@tobyscott.dev>

* Update README.md

Co-authored-by: Toby Scott <hi@tobyscott.dev>

* Update README.md

Co-authored-by: Toby Scott <hi@tobyscott.dev>

* Update README.md

Co-authored-by: Toby Scott <hi@tobyscott.dev>

* Update README.md

Co-authored-by: Toby Scott <hi@tobyscott.dev>

* Update README.md

Co-authored-by: Toby Scott <hi@tobyscott.dev>

* Update Dockerfile

---------

Co-authored-by: Toby Scott <hi@tobyscott.dev>
2024-02-13 15:06:42 -08:00

25 lines
495 B
YAML

version: "3.8"
name: leptos-book
services:
devcontainer:
build:
context: ./..
dockerfile: .devcontainer/Dockerfile
volumes:
- ./..:/repository
# VSCode needs a second to be able to attach to the container
command: /bin/sh -c "while sleep 1000; do :; done"
book:
build:
context: ./../
dockerfile: .devcontainer/Dockerfile
volumes:
- ./..:/repository
expose:
- 3000
# Run the book
command: .devcontainer/book.sh