trying to fix OOM parallel build issue

This commit is contained in:
Jason Kulatunga 2023-07-10 21:17:48 -07:00
parent c8f06ea1b4
commit 49cee9ff20
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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 ./... \