Speed up build by using cache and updating ignores

This commit is contained in:
2021-12-04 23:45:58 +00:00
parent 69bac9bc3f
commit 91a0c43d6d
3 changed files with 14 additions and 2 deletions

View File

@ -5,7 +5,7 @@ build:
COPY go.mod go.sum .
RUN go mod download
COPY . .
RUN go build -o build/budgeteer ./cmd/budgeteer
RUN --mount=type=cache,target=/root/.cache/go-build go build -o build/budgeteer ./cmd/budgeteer
SAVE ARTIFACT build/budgeteer /budgeteer AS LOCAL build/budgeteer
docker: