fix: fix root start script (#5032)

Fixes #5022

See https://nx.dev/recipes/running-tasks/root-level-scripts#setup
This commit is contained in:
Thaïs
2024-04-19 18:28:02 +02:00
committed by GitHub
parent 43f0b11aab
commit d3170fc1ea
28 changed files with 94 additions and 79 deletions

View File

@ -14,7 +14,7 @@ COPY ./packages/twenty-ui /app/packages/twenty-ui
RUN yarn
COPY ./packages/twenty-docs /app/packages/twenty-docs
RUN yarn nx build twenty-docs
RUN npx nx build twenty-docs
CMD ["tail", "-f", "/dev/null"]

View File

@ -13,7 +13,7 @@ COPY ./packages/twenty-website/package.json /app/packages/twenty-website/package
RUN yarn
COPY ./packages/twenty-website /app/packages/twenty-website
RUN yarn nx build twenty-website
RUN npx nx build twenty-website
FROM node:18.17.1-alpine as twenty-website
@ -26,4 +26,4 @@ WORKDIR /app/packages/twenty-website
LABEL org.opencontainers.image.source=https://github.com/twentyhq/twenty
LABEL org.opencontainers.image.description="This image provides a consistent and reproducible environment for the website."
CMD ["/bin/sh", "-c", "yarn nx start"]
CMD ["/bin/sh", "-c", "npx nx start"]