Files
twenty/infra/prod/server/Dockerfile
Ruslan f6b5943fc6 chore: Pre build docker images (#2099) (#2131)
chore: LABEL to link images source to github
2023-10-19 22:57:00 +02:00

18 lines
539 B
Docker

FROM node:18.16.0-alpine as server
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"]