-
Notifications
You must be signed in to change notification settings - Fork 73
/
Dockerfile.debug
33 lines (23 loc) · 962 Bytes
/
Dockerfile.debug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ARG GOVERSION
ARG DISTRIBUTION
FROM golang:${GOVERSION} as builder
ARG TARGETARCH
RUN apk add g++ make
RUN go install github.com/go-delve/delve/cmd/dlv@latest
FROM ${DISTRIBUTION} as artifact
ARG RELEASE_MODE
ARG TARGETARCH
ARG VERSION
LABEL name="kube-arangodb" \
vendor="ArangoDB" \
version="${VERSION}" \
release="${VERSION}" \
summary="ArangoDB Kubernetes Oparator" \
description="ArangoDB Kubernetes Operator" \
maintainer="[email protected]"
RUN apk add --no-cache libc6-compat
ADD ./LICENSE /licenses/LICENSE
ADD bin/${RELEASE_MODE}/linux/${TARGETARCH}/arangodb_operator /usr/bin/arangodb_operator
ADD bin/${RELEASE_MODE}/linux/${TARGETARCH}/arangodb_operator_ops /usr/bin/arangodb_operator_ops
COPY --from=builder /go/bin/dlv /usr/bin/dlv
ENTRYPOINT ["/usr/bin/dlv", "--listen=:2345", "--headless=true", "--continue", "--accept-multiclient", "--api-version=2", "exec", "/usr/bin/arangodb_operator", "--" ]