All checks were successful
Linting and tests / Linting (push) Successful in 5s
19 lines
740 B
Docker
19 lines
740 B
Docker
FROM code.pztrn.name/containers/go-toolbox:v8 AS build
|
|
|
|
WORKDIR /bunkerd
|
|
COPY . /bunkerd
|
|
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 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"]
|