chore: update Dockerfiles to ignore scripts during npm install
- 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:
+1
-1
@@ -8,7 +8,7 @@ WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
COPY packages/contracts/package.json packages/contracts/
|
||||
COPY backend/package.json backend/
|
||||
RUN npm ci --workspace=@mmapp/contracts --workspace=mikrotik-manager-backend --include-workspace-root
|
||||
RUN npm ci --workspace=@mmapp/contracts --workspace=mikrotik-manager-backend --include-workspace-root --ignore-scripts
|
||||
|
||||
FROM deps AS build
|
||||
COPY packages/contracts packages/contracts
|
||||
|
||||
Reference in New Issue
Block a user