You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apps/backend - a NestJS backend microservice apps/frontend- a React SPA schema - shared datatypes (DTO/payloads)
I'm attempting to create a Dockerfile to build an image of the backend app.
Repro steps
The Dockerfile in apps/backend
FROM node:18-bullseye-slim AS build
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN node common/scripts/install-run-rush.js install
RUN node common/scripts/install-run-rush.js build --verbose --to @sfp-cc/backend
FROM gcr.io/distroless/nodejs:18
COPY --from=build /usr/src/monorepo/apps/backend /usr/src/app
WORKDIR /usr/src/app
EXPOSE 3000
CMD [ "node", "dist/main" ]
When I run docker build theImage:v1 -f apps/backend/Dockerfile (from the root directory) the install-run-rush.js install step fails with
#10 1.891 Checking installation in "/usr/src/app/common/temp" #10 1.892 ERROR: Current PNPM store path does not match the last one used. This may cause #10 1.892 inconsistency in your builds. #10 1.892 If you wish to install with the new store path, please run "rush update #10 1.892 --purge" #10 1.892 #10 1.892 Old Path: /Users/userX/src/perso/projectX/common/temp/pnpm-store #10 1.892 New Path: /usr/src/app/common/temp/pnpm-store
I've been trying to find an example of how to build a docker image of a rush monorepo subproject but couldn't find any.
Question
Answer
@microsoft/rush globally installed version?
5.77.3
rushVersion from rush.json?
5.77.3
useWorkspaces from rush.json?
yes
Operating system?
MacOS M1
Would you consider contributing a PR?
Yes
Node.js version (node -v)?
v18.10.0
The text was updated successfully, but these errors were encountered:
Summary
I have rash monorepo consisting of 3 workspaces:
apps/backend
- a NestJS backend microserviceapps/frontend
- a React SPAschema
- shared datatypes (DTO/payloads)I'm attempting to create a Dockerfile to build an image of the backend app.
Repro steps
The
Dockerfile
inapps/backend
When I run
docker build theImage:v1 -f apps/backend/Dockerfile
(from the root directory) theinstall-run-rush.js install
step fails withI've been trying to find an example of how to build a docker image of a rush monorepo subproject but couldn't find any.
@microsoft/rush
globally installed version?rushVersion
from rush.json?useWorkspaces
from rush.json?node -v
)?The text was updated successfully, but these errors were encountered: