chore: enhance Dockerfiles and package.json for improved build process
- Added ENV npm_config_ignore_scripts=true to frontend and backend Dockerfiles to skip scripts during npm install, optimizing build times. - Introduced a postinstall script in package.json to ensure the build process for @mmapp/contracts runs after installation.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
FROM node:22-bookworm-slim AS deps
|
||||
WORKDIR /app
|
||||
ENV npm_config_ignore_scripts=true
|
||||
COPY package.json package-lock.json ./
|
||||
COPY packages/contracts/package.json packages/contracts/
|
||||
RUN npm ci --workspace=@mmapp/contracts --include-workspace-root --ignore-scripts
|
||||
|
||||
Reference in New Issue
Block a user