Speed up build by using cache and updating ignores
This commit is contained in:
parent
69bac9bc3f
commit
91a0c43d6d
10
.dockerignore
Normal file
10
.dockerignore
Normal file
@ -0,0 +1,10 @@
|
||||
build/
|
||||
.git/
|
||||
docker-compose.yml
|
||||
README.md
|
||||
Earthfile
|
||||
config.example.json
|
||||
.gitignore
|
||||
.vscode/
|
||||
budgeteer
|
||||
budgeteer.exe
|
@ -5,4 +5,6 @@ README.md
|
||||
Earthfile
|
||||
config.example.json
|
||||
.gitignore
|
||||
.vscode/
|
||||
.vscode/
|
||||
budgeteer
|
||||
budgeteer.exe
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user