chore: update Dockerfiles to ignore scripts during npm install
Docker images / backend-image (push) Failing after 1m33s
Docker images / frontend-image (push) Failing after 55s
Docker images / notify-webhook (push) Has been skipped

- Modified Dockerfile for frontend and backend to include the --ignore-scripts flag in npm ci commands, improving build efficiency.
- Added a step in the Docker workflow to create the public directory in the staging environment.
This commit is contained in:
Denozordec
2026-05-12 14:00:05 +07:00
parent 02119a3acd
commit 01596864dc
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ FROM node:22-bookworm-slim AS deps
WORKDIR /app
COPY package.json package-lock.json ./
COPY packages/contracts/package.json packages/contracts/
RUN npm ci --workspace=@mmapp/contracts --include-workspace-root
RUN npm ci --workspace=@mmapp/contracts --include-workspace-root --ignore-scripts
FROM deps AS build
COPY packages/contracts packages/contracts
@@ -14,7 +14,7 @@ COPY components components
COPY lib lib
COPY shared shared
COPY entities entities
COPY public public
RUN mkdir -p public
COPY hooks hooks
ENV NEXT_TELEMETRY_DISABLED=1
RUN npm run build -w @mmapp/contracts \