DEVELOPMENT ENVIRONMENT

~liljamo/tixe

aa4ffd5f5c60de5710703f6dd6bd18fcabd6a0e1 — Jonni Liljamo 1 year, 3 months ago bd64626
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