From 49cee9ff20e909afe0817d96d4c95d237af8d862 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Mon, 10 Jul 2023 21:17:48 -0700 Subject: [PATCH] trying to fix OOM parallel build issue --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe3298f9..c992af4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ COPY frontend/package.json frontend/yarn.lock ./ RUN yarn install --frozen-lockfile COPY frontend/ ./ -RUN --mount=type=cache,target=/tmp/frontend_lock,sharing=locked \ +RUN --mount=type=cache,target=/tmp/lock,sharing=locked \ yarn run build -- --configuration ${FASTEN_ENV} --output-path=../dist ######################################################################################################### @@ -27,7 +27,7 @@ FROM golang:1.18 as backend-build WORKDIR /go/src/github.com/fastenhealth/fastenhealth-onprem COPY . . -RUN --mount=type=cache,target=/tmp/backend_lock,sharing=locked \ +RUN --mount=type=cache,target=/tmp/lock,sharing=locked \ go mod vendor \ && go install github.com/golang/mock/mockgen@v1.6.0 \ && go generate ./... \