diff --git a/packages/server/beaver_triple_service/Dockerfile b/packages/server/beaver_triple_service/Dockerfile index a93871be9..1c539a1f1 100644 --- a/packages/server/beaver_triple_service/Dockerfile +++ b/packages/server/beaver_triple_service/Dockerfile @@ -80,6 +80,8 @@ COPY config/beaver_triple_service/ /QuickMPC WORKDIR /QuickMPC RUN --mount=type=cache,target=/root/go/pkg/mod \ go mod download +RUN --mount=type=cache,target=/root/go/pkg/mod \ + go mod tidy RUN --mount=type=cache,target=/root/go/pkg/mod \ --mount=type=cache,target=/root/.cache \ go build diff --git a/packages/server/manage_container/Dockerfile b/packages/server/manage_container/Dockerfile index 4c44af093..34a59302b 100644 --- a/packages/server/manage_container/Dockerfile +++ b/packages/server/manage_container/Dockerfile @@ -64,6 +64,8 @@ COPY proto/ /proto WORKDIR /QuickMPC RUN --mount=type=cache,target=/root/go/pkg/mod \ go mod download +RUN --mount=type=cache,target=/root/go/pkg/mod \ + go mod tidy RUN --mount=type=cache,target=/root/go/pkg/mod \ --mount=type=cache,target=/root/.cache \ go build