Files
twenty/infra/build/server/Dockerfile
Charles Bochet 42af74eb46 Build render (#2188)
* Build for arm and amd

* Add scripts

* Add scripts
2023-10-22 23:47:43 +02:00

18 lines
538 B
Docker

FROM node:18.16.0-alpine as build
WORKDIR /app/server
COPY ./server/package.json ./
COPY ./server/yarn.lock ./
COPY ./server/patches ./patches
RUN yarn install
COPY ./server .
RUN npx prisma generate
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."
CMD ["node", "dist/src/main"]