ci: use yarn v3 in ci

This commit is contained in:
dec0dOS 2022-06-22 19:21:21 +03:00
commit eae12ccc53

View file

@ -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" ]