Dockerfile.debug 822 B

123456789101112131415161718192021
  1. # This dockerfile is for development purposes only; do not use this for production deployments
  2. FROM golang:alpine
  3. # The prebuilt binary path. This Dockerfile assumes the binary will be built
  4. # outside of Docker.
  5. ARG binary_path
  6. WORKDIR /app
  7. RUN apk add --update --no-cache ca-certificates
  8. RUN go install github.com/go-delve/delve/cmd/dlv@latest
  9. ADD --chmod=644 ./configs/default.json /models/default.json
  10. ADD --chmod=644 ./configs/azure.json /models/azure.json
  11. ADD --chmod=644 ./configs/aws.json /models/aws.json
  12. ADD --chmod=644 ./configs/gcp.json /models/gcp.json
  13. ADD --chmod=644 ./configs/alibaba.json /models/alibaba.json
  14. RUN echo "binary_path"
  15. COPY ${binary_path} main
  16. ENTRYPOINT ["/go/bin/dlv exec --listen=:40000 --api-version=2 --headless=true --accept-multiclient --log --continue /app/main"]
  17. EXPOSE 9003 40000