mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-08 11:59:17 +00:00
Update Dockerfile
This commit is contained in:
parent
40dc62c3bd
commit
c4d44ba9d3
@ -19,7 +19,7 @@ WORKDIR /api-build
|
||||
COPY api/go.mod api/go.sum ./
|
||||
RUN go mod download
|
||||
# cheap trick to make the build faster (As long as go.mod wasn't changes)
|
||||
RUN go list -f '{{.Path}}@{{.Version}}' -m all | sed 1d | xargs go get
|
||||
RUN go list -f '{{.Path}}@{{.Version}}' -m all | sed 1d | grep -e 'go-cache' -e 'sqlite' | xargs go get
|
||||
|
||||
# Copy and build api code
|
||||
COPY api .
|
||||
|
Loading…
Reference in New Issue
Block a user