mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Switch from yarn to npm for building
This commit is contained in:
parent
f3de398c89
commit
a0745fcaa5
1 changed files with 3 additions and 6 deletions
|
|
@ -9,12 +9,9 @@ FROM node:24 AS frontend-builder
|
|||
WORKDIR /app/frontend
|
||||
COPY ./frontend /app/frontend
|
||||
|
||||
RUN corepack enable && corepack prepare yarn@stable --activate
|
||||
|
||||
RUN yarn install || (find /tmp -name build.log -exec cat {} \; && exit 1)
|
||||
|
||||
RUN yarn build
|
||||
|
||||
# Install dependencies and build using npm
|
||||
RUN npm install || (find /tmp -name build.log -exec cat {} \; && exit 1)
|
||||
RUN npm run build
|
||||
RUN rm -rf node_modules .cache
|
||||
|
||||
# --- Redeclare build arguments for the next stage ---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue