From 6adbb7419c718eef17269a12e52c7201c4af7cb2 Mon Sep 17 00:00:00 2001 From: Athurg Gooth Date: Wed, 12 Jul 2023 15:39:56 +0800 Subject: [PATCH] chore: split Go binary and src for dev (#1932) Split Go binary and src for dev --- docker-compose.dev.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.dev.yaml b/docker-compose.dev.yaml index 8ba6c80c..e3675cbb 100644 --- a/docker-compose.dev.yaml +++ b/docker-compose.dev.yaml @@ -14,8 +14,9 @@ services: working_dir: /work command: air -c ./scripts/.air.toml 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/ - - ./.air/go/:/go/ # Cache for go mod database web: image: node:18.12.1-alpine3.16 working_dir: /work