hack: add api module to container during build

This commit is contained in:
Otto Bittner 2023-02-16 10:23:03 +01:00
parent d0daf26da7
commit 9bf9326227

View File

@ -11,6 +11,9 @@ RUN wget -q https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz && \
ENV PATH ${PATH}:/usr/local/go/bin
WORKDIR /qemu-metadata-api
# Necessary to make `go mod download all` work while having a local replace rule in the root-go.mod.
COPY operators/constellation-node-operator/api/go.mod ./operators/constellation-node-operator/api/go.mod
COPY operators/constellation-node-operator/api/go.sum ./operators/constellation-node-operator/api/go.sum
COPY go.mod ./
COPY go.sum ./
RUN go mod download all