add build caching
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-02-14 21:03:45 -05:00
parent 2a4d7d5205
commit ab0cb58a98
3 changed files with 22 additions and 6 deletions

View File

@@ -1,7 +1,3 @@
FROM golang:1.26 as builder
COPY . /castor
RUN cd /castor && CGO_ENABLED=0 go build
FROM scratch
COPY --from=builder /castor/castor castor
COPY ./castor castor
CMD ["/castor"]