mirror of
https://github.com/leptos-rs/book.git
synced 2025-12-27 07:35:38 -05:00
* 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>
25 lines
495 B
YAML
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
|