Install tools depedencies using go list
This commit is contained in:
parent
3d1953d9b8
commit
6f3f0f75b6
4 changed files with 4 additions and 2 deletions
|
|
@ -31,6 +31,7 @@ WORKDIR /build
|
|||
COPY Makefile .
|
||||
COPY go.mod .
|
||||
COPY go.sum .
|
||||
COPY tools.go .
|
||||
RUN make install
|
||||
RUN go mod download
|
||||
|
||||
|
|
|
|||
3
Makefile
3
Makefile
|
|
@ -30,8 +30,7 @@ clean:
|
|||
rm -rf dist/
|
||||
|
||||
install:
|
||||
go install github.com/golang/mock/mockgen
|
||||
go install github.com/alvaroloes/enumer
|
||||
go install $$(go list -f '{{join .Imports " "}}' tools.go)
|
||||
|
||||
install-ui:
|
||||
npm ci
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ RUN apk update && apk add --no-cache git ca-certificates tzdata alpine-sdk && up
|
|||
COPY Makefile .
|
||||
COPY go.mod .
|
||||
COPY go.sum .
|
||||
COPY tools.go .
|
||||
RUN make install
|
||||
RUN go mod download
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ WORKDIR /build
|
|||
COPY Makefile .
|
||||
COPY go.mod .
|
||||
COPY go.sum .
|
||||
COPY tools.go .
|
||||
RUN make install
|
||||
RUN go mod download
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue