Skip to content

Commit

Permalink
trying to fix OOM parallel build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Jul 11, 2023
1 parent e34cca2 commit c8f06ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ COPY frontend/package.json frontend/yarn.lock ./

RUN yarn install --frozen-lockfile
COPY frontend/ ./
RUN yarn run build -- --configuration ${FASTEN_ENV} --output-path=../dist
RUN --mount=type=cache,target=/tmp/frontend_lock,sharing=locked \
yarn run build -- --configuration ${FASTEN_ENV} --output-path=../dist

#########################################################################################################
# Backend Build
Expand All @@ -26,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/lock,sharing=locked \
RUN --mount=type=cache,target=/tmp/backend_lock,sharing=locked \
go mod vendor \
&& go install github.com/golang/mock/mockgen@v1.6.0 \
&& go generate ./... \
Expand Down

0 comments on commit c8f06ea

Please # to comment.