update build commands for pnpm on Dockerfile

This commit is contained in:
Amruth Pillai
2023-04-06 14:42:36 +02:00
parent 5486906b05
commit ba6ca4d220
2 changed files with 7 additions and 5 deletions

View File

@ -21,7 +21,8 @@ COPY --from=dependencies /app/node_modules ./node_modules
COPY --from=dependencies /app/schema/node_modules ./schema/node_modules
COPY --from=dependencies /app/client/node_modules ./client/node_modules
RUN pnpm run build --filter client
RUN pnpm run --filter schema build \
&& pnpm run --filter client build
FROM base as production
@ -42,4 +43,4 @@ ENV PORT 3000
HEALTHCHECK --interval=30s --timeout=20s --retries=3 --start-period=15s \
CMD curl -fSs localhost:3000 || exit 1
CMD [ "pnpm", "run", "start", "--filter", "client" ]
CMD [ "pnpm", "run", "--filter", "client", "start" ]