Improve debug configuration.
All checks were successful
Linting and tests / Linting (push) Successful in 5s
All checks were successful
Linting and tests / Linting (push) Successful in 5s
This commit is contained in:
@@ -2,15 +2,17 @@ FROM code.pztrn.name/containers/go-toolbox:v8 AS build
|
||||
|
||||
WORKDIR /bunkerd
|
||||
COPY . /bunkerd
|
||||
RUN --mount=type=cache,target="/home/container/go" task server:cmd:bunkerd:build --force
|
||||
RUN --mount=type=cache,target="/home/container/go" GOFLAGS="" task server:cmd:bunkerd:build-debug --force
|
||||
|
||||
FROM debian:13-slim
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y ca-certificates iputils-ping coreutils && \
|
||||
apt-get install -y ca-certificates iputils-ping coreutils curl net-tools && \
|
||||
rm -rf /var/lib/apt/* /var/cache/apt/*
|
||||
|
||||
COPY --from=build /bunkerd/_build/bunkerd /bunkerd
|
||||
COPY --from=build /usr/local/bin/dlv /dlv
|
||||
|
||||
HEALTHCHECK --interval=1s --timeout=10s --start-period=1s --retries=3 CMD netstat -an | grep 4000 > /dev/null; if [ 0 != $? ]; then exit 1; fi;
|
||||
|
||||
ENTRYPOINT ["/dlv", "--listen=:4000", "--headless=true", "--log=true", "--accept-multiclient", "--api-version=2", "exec", "/bunkerd"]
|
||||
|
Reference in New Issue
Block a user