Skip to content

Commit 7c08dbf

Browse files
committed
Fix mounting pkg dir. Run npm ci just before mage to compensate docker timing issues. Build backend for the current platform only.
1 parent 47fc790 commit 7c08dbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker-compose.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ services:
44
context: ./builder
55
dockerfile: Dockerfile
66
volumes:
7-
- .:/app
7+
- ./:/app
88
- go-cache:/root/.cache/go-build
9-
- go-mod-cache:/go/pkg/mod
9+
- go-mod-cache:/root/go/pkg/mod
1010
working_dir: /app
11-
command: bash -c "cd /app && go mod download && mage -v && npm install && npm run build"
11+
command: bash -c "cd /app && npm ci && GOFLAGS=-buildvcs=false mage -v build:Backend && npm run build"
1212

1313
grafana:
1414
user: root

0 commit comments

Comments
 (0)