Fix node_modules copy in web Dockerfile builder stage
Copy entire /app directory from deps stage instead of just node_modules to ensure all dependencies and pnpm workspace files are available for the build process.
This commit is contained in:
@@ -19,7 +19,7 @@ RUN npm install -g pnpm \
|
||||
fi
|
||||
|
||||
FROM base AS builder
|
||||
COPY --from=deps /app/node_modules /app/node_modules
|
||||
COPY --from=deps /app /app
|
||||
COPY . /app
|
||||
|
||||
RUN npm install -g pnpm && pnpm --filter @nexadash/web build
|
||||
|
||||
Reference in New Issue
Block a user