chore: set up twenty-emails config so build isn't needed in development (#3619)
* chore: set up twenty-emails config so build isn't needed in development * fix: fix script dependency * chore: use @vitejs/plugin-react-swc * Remove useless dependancy * Fix typing * chore: use baseUrl in twenty-emails * chore: fix docker server prod build * refactor: optimize Docker file and tsconfig * fix: fix WORKDIR in docker --------- Co-authored-by: martmull <martmull@hotmail.fr>
This commit is contained in:
@ -5,20 +5,15 @@ WORKDIR /app
|
||||
COPY ./package.json .
|
||||
COPY ./yarn.lock .
|
||||
COPY ./.yarnrc.yml .
|
||||
COPY ./tsconfig.base.json .
|
||||
COPY ./nx.json .
|
||||
COPY ./.yarn/releases /app/.yarn/releases
|
||||
COPY ./tools/eslint-rules /app/tools/eslint-rules
|
||||
COPY ./packages/twenty-server/package.json /app/packages/twenty-server/package.json
|
||||
COPY ./packages/twenty-server/patches /app/packages/twenty-server/patches
|
||||
COPY ./packages/twenty-emails /app/packages/twenty-emails
|
||||
|
||||
WORKDIR /app/packages/twenty-emails
|
||||
RUN yarn workspaces focus
|
||||
RUN yarn build
|
||||
COPY ./packages/twenty-server /app/packages/twenty-server
|
||||
RUN yarn workspaces focus twenty-emails twenty-server
|
||||
RUN npx nx run twenty-server:build
|
||||
|
||||
WORKDIR /app/packages/twenty-server
|
||||
COPY ./packages/twenty-server /app/packages/twenty-server
|
||||
RUN yarn workspaces focus
|
||||
RUN yarn build
|
||||
|
||||
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 backend, ensuring it deploys faster and runs the same way regardless of the deployment environment."
|
||||
|
||||
Reference in New Issue
Block a user