Speed up build by using cache and updating ignores

This commit is contained in:
jacob1123 committed 2021-12-04 23:45:58 +00:00
1 parent 69bac9bc3f
commit 91a0c43d6d
3 files changed
+14 -2

No files matched your search

+1 -1
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: