twenty/infra/prod/server/Dockerfile

14 lines
221 B
Docker
Raw Normal View History

2023-04-18 17:21:38 +03:00
FROM node:18.16.0-alpine as server
2023-04-14 15:35:58 +03:00
2023-04-24 18:24:58 +03:00
WORKDIR /app/server
COPY ./server/package.json ./
COPY ./server/yarn.lock ./
2023-06-14 18:23:48 +03:00
RUN yarn install --prod
2023-04-14 15:35:58 +03:00
COPY ./server .
2023-04-24 18:24:58 +03:00
RUN npx prisma generate
2023-04-14 15:35:58 +03:00
RUN yarn build
2023-04-14 15:35:58 +03:00
CMD ["node", "dist/main"]