feat: make docker build cache deps builds
1 files changed, 3 insertions(+), 2 deletions(-) M Dockerfile
M Dockerfile => Dockerfile +3 -2
@@ 8,11 8,12 @@ RUN go mod download && go mod verify COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -v -o /tixe ./tixe.go RUN --mount=type=cache,target=/root/.cache/go-build \ CGO_ENABLED=0 GOOS=linux go build -v -o /tixe ./tixe.go # tester FROM builder AS tester RUN go test -v ./... RUN --mount=type=cache,target=/root/.cache/go-build go test -v ./... # release FROM alpine:3.18 AS release