more-build-caching #98

Merged
alazyreader merged 3 commits from more-build-caching into master 2026-02-14 20:56:50 +00:00
Showing only changes of commit bef3300198 - Show all commits

View File

@@ -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