diff --git a/Dockerfile b/Dockerfile index 0193c55c2..fe3298f90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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 ./... \