Build render (#2188)
* Build for arm and amd * Add scripts * Add scripts
This commit is contained in:
@ -1,23 +1,3 @@
|
||||
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
|
||||
|
||||
FROM node:18.16.0-alpine as server
|
||||
|
||||
COPY --from=build /app/server/dist ./dist
|
||||
|
||||
WORKDIR /app/server
|
||||
|
||||
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."
|
||||
FROM --platform=linux/amd64 twentycrm/twenty-server as server
|
||||
|
||||
CMD ["node", "dist/src/main"]
|
||||
|
||||
Reference in New Issue
Block a user