This commit is contained in:
@@ -8,8 +8,11 @@
|
|||||||
- go_mod_cache:/go/pkg/mod
|
- go_mod_cache:/go/pkg/mod
|
||||||
build:
|
build:
|
||||||
image: golang:1.26
|
image: golang:1.26
|
||||||
|
environment:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOOS: linux
|
||||||
commands:
|
commands:
|
||||||
- RUN CGO_ENABLED=0 GOOS=linux go build -o server ./cmd/serve
|
- go build -o server ./cmd/serve
|
||||||
volumes:
|
volumes:
|
||||||
- go_build_cache:/root/.cache/go-build
|
- go_build_cache:/root/.cache/go-build
|
||||||
- go_mod_cache:/go/pkg/mod
|
- go_mod_cache:/go/pkg/mod
|
||||||
|
|||||||
Reference in New Issue
Block a user