Skip to content

Commit 47fc790

Browse files
committed
Download GO packages before running mage.
1 parent e8b049a commit 47fc790

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

builder/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ RUN nvm use 20
2828
RUN apt-get install -y golang-go
2929
RUN go install github.com/magefile/mage@latest
3030
RUN cp /root/go/bin/mage /usr/local/bin/mage
31+
32+
ENV GO111MODULE=on
33+
ENV GOPROXY=https://proxy.golang.org

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
- go-cache:/root/.cache/go-build
99
- go-mod-cache:/go/pkg/mod
1010
working_dir: /app
11-
command: bash -c "cd /app && mage -v && npm install && npm run build"
11+
command: bash -c "cd /app && go mod download && mage -v && npm install && npm run build"
1212

1313
grafana:
1414
user: root

0 commit comments

Comments
 (0)