chore: split Go binary and src for dev (#1932)

Split Go binary and src for dev
This commit is contained in:
Athurg Gooth
2023-07-12 15:39:56 +08:00
committed by GitHub
parent d4b88c6c86
commit 6adbb7419c

View File

@ -14,8 +14,9 @@ services:
working_dir: /work working_dir: /work
command: air -c ./scripts/.air.toml command: air -c ./scripts/.air.toml
volumes: volumes:
- $HOME/go/pkg/:/go/pkg/ # Cache for go mod shared with the host
- ./.air/bin/:/go/bin/ # Cache for binary used only in container, such as *air*
- .:/work/ - .:/work/
- ./.air/go/:/go/ # Cache for go mod database
web: web:
image: node:18.12.1-alpine3.16 image: node:18.12.1-alpine3.16
working_dir: /work working_dir: /work