Commit 97958fc6 authored by Yechang's avatar Yechang
Browse files

ci: try

parent 7f3569af
Loading
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ WORKDIR /home/node

# pnpm fetch does require only lockfile
COPY pnpm-lock.yaml ./
RUN pnpm fetch
RUN pnpm fetch --registry=https://registry.npmmirror.com

COPY --chown=node:node . .

@@ -22,8 +22,6 @@ RUN pnpm install -r --offline && \
CMD pnpm prisma:deploy

FROM builder as building_stage
ENV NODE_ENV production

ENV PRISMA_ENGINES_MIRROR=https://registry.npmmirror.com/-/binary/prisma

ARG ORIGIN=https://lms.sustech.cloud
@@ -54,8 +52,6 @@ ENV ORIGIN $ORIGIN
WORKDIR /home/app

COPY --from=building_stage --chown=node:node /home/node/package*.json ./
COPY --from=building_stage --chown=node:node /home/node/node_modules/ ./node_modules/
COPY --from=building_stage --chown=node:node /home/node/.svelte-kit/ ./.svelte-kit/
COPY --from=building_stage --chown=node:node /home/node/build/ ./build/

HEALTHCHECK --interval=5s --timeout=3s \