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