build(docker): use --legacy-peer-deps for frontend npm install in container
This commit is contained in:
parent
7591f001c1
commit
f6cab715e6
2 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ ENV npm_config_registry=https://registry.npmmirror.com
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
COPY pnpm-lock.yaml ./
|
COPY pnpm-lock.yaml ./
|
||||||
RUN npm install --no-audit --no-fund
|
RUN npm install --no-audit --no-fund --legacy-peer-deps
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ WORKDIR /app
|
||||||
# Install frontend deps and build (root project)
|
# Install frontend deps and build (root project)
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
COPY pnpm-lock.yaml ./
|
COPY pnpm-lock.yaml ./
|
||||||
RUN npm install --no-audit --no-fund
|
RUN npm install --no-audit --no-fund --legacy-peer-deps
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue