From ef8314b554d8c88630364bf3a64f52c4096c404f Mon Sep 17 00:00:00 2001 From: RamiBerm Date: Tue, 20 Jul 2021 09:58:21 +0300 Subject: [PATCH] Update debug.Dockerfile --- debug.Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debug.Dockerfile b/debug.Dockerfile index d0dc3102b..c894d2f27 100644 --- a/debug.Dockerfile +++ b/debug.Dockerfile @@ -19,12 +19,15 @@ WORKDIR /app/api-build COPY api/go.mod api/go.sum ./ COPY shared/go.mod shared/go.mod ../shared/ +COPY tap/go.mod tap/go.mod ../tap/ + 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 | grep -e 'go-cache' -e 'sqlite' | xargs go get # Copy and build api code COPY shared ../shared +COPY tap ../tap COPY api . 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 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"]