rough-vase-83553
11/15/2022, 12:21 AMrough-vase-83553
11/15/2022, 12:21 AMdocker build
on the other hand has no complaints. The single stage build works under Pants as wellrough-vase-83553
11/15/2022, 12:43 AMFROM golang:1.16-alpine
WORKDIR /build
COPY submodule-root/cmd/prom-aggregation-gateway/*.go ./
COPY go.* ./
RUN go build -o /prom-aggregation-gateway
WORKDIR /build
# Pants seems to have a bug where it cannot properly deal with multi-stage builds, so do this for now
RUN rm -rf /build
ENTRYPOINT ["/prom-aggregation-gateway"]
rough-vase-83553
11/15/2022, 12:45 AMsubmodule-root/cmd/prom-aggregation-gateway
and move them back out into the same directory as the BUILD filehappy-kitchen-89482
11/15/2022, 1:13 AMrough-vase-83553
11/15/2022, 1:55 AMrough-vase-83553
11/15/2022, 2:15 AMrough-vase-83553
11/15/2022, 2:16 AM