mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-08-14 02:27:35 -07:00
ci: use yarn v3 in ci
This commit is contained in:
parent
252ade73e0
commit
eae12ccc53
1 changed files with 11 additions and 5 deletions
|
@ -3,12 +3,14 @@ FROM --platform=$BUILDPLATFORM node:lts-alpine as frontend-build
|
|||
ENV INLINE_RUNTIME_CHUNK=false
|
||||
ENV GENERATE_SOURCEMAP=false
|
||||
|
||||
WORKDIR /app/frontend
|
||||
WORKDIR /app
|
||||
COPY ./.yarn /app
|
||||
|
||||
COPY ./frontend/package*.json /app/frontend
|
||||
RUN yarn install --network-timeout 1000000
|
||||
RUN yarn workspace frontend install
|
||||
|
||||
COPY ./frontend /app/frontend
|
||||
RUN yarn build
|
||||
RUN yarn workspace frontend build
|
||||
|
||||
|
||||
FROM node:lts-alpine
|
||||
|
@ -16,9 +18,11 @@ FROM node:lts-alpine
|
|||
WORKDIR /app/frontend/build
|
||||
COPY --from=frontend-build /app/frontend/build /app/frontend/build/
|
||||
|
||||
WORKDIR /app/backend
|
||||
WORKDIR /app
|
||||
COPY ./.yarn /app
|
||||
|
||||
COPY ./backend/package*.json /app/backend
|
||||
RUN yarn install
|
||||
RUN yarn workspace backend install
|
||||
|
||||
COPY ./backend /app/backend
|
||||
|
||||
|
@ -27,4 +31,6 @@ ENV NODE_ENV=production
|
|||
ENV ZU_SECURE_HEADERS=true
|
||||
ENV ZU_SERVE_FRONTEND=true
|
||||
|
||||
WORKDIR /app/backend
|
||||
|
||||
CMD [ "node", "./bin/www" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue