mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-17 09:51:56 +00:00
Update debug.Dockerfile
This commit is contained in:
parent
b57cb0e615
commit
ef8314b554
@ -19,12 +19,15 @@ WORKDIR /app/api-build
|
|||||||
|
|
||||||
COPY api/go.mod api/go.sum ./
|
COPY api/go.mod api/go.sum ./
|
||||||
COPY shared/go.mod shared/go.mod ../shared/
|
COPY shared/go.mod shared/go.mod ../shared/
|
||||||
|
COPY tap/go.mod tap/go.mod ../tap/
|
||||||
|
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
# cheap trick to make the build faster (As long as go.mod wasn't changes)
|
# 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 | grep -e 'go-cache' -e 'sqlite' | 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 and build api code
|
||||||
COPY shared ../shared
|
COPY shared ../shared
|
||||||
|
COPY tap ../tap
|
||||||
COPY api .
|
COPY api .
|
||||||
RUN go build -gcflags="all=-N -l" -o mizuagent .
|
RUN go build -gcflags="all=-N -l" -o mizuagent .
|
||||||
|
|
||||||
@ -41,4 +44,5 @@ COPY --from=site-build ["/app/ui-build/build", "site"]
|
|||||||
# install remote debugging tool
|
# install remote debugging tool
|
||||||
RUN go get github.com/go-delve/delve/cmd/dlv
|
RUN go get github.com/go-delve/delve/cmd/dlv
|
||||||
|
|
||||||
CMD ["sh", "-c", "dlv --headless=true --listen=:2345 --log --api-version=2 --accept-multiclient exec ./mizuagent -- --aggregator"]
|
ENTRYPOINT "/app/mizuagent"
|
||||||
|
#CMD ["sh", "-c", "dlv --headless=true --listen=:2345 --log --api-version=2 --accept-multiclient exec ./mizuagent -- --aggregator"]
|
||||||
|
Loading…
Reference in New Issue
Block a user