fix: fix root start script (#5032)
Fixes #5022 See https://nx.dev/recipes/running-tasks/root-level-scripts#setup
This commit is contained in:
@ -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"]
|
||||
|
||||
|
||||
@ -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"]
|
||||
Reference in New Issue
Block a user