chore: Pre build docker images (#2099) (#2131)

chore: LABEL to link images source to github
This commit is contained in:
Ruslan 2023-10-20 03:57:00 +07:00 committed by GitHub
parent e9092162e0
commit f6b5943fc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View File

@ -12,5 +12,7 @@ COPY ./docs .
RUN npm run build
RUN yarn global add serve
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 documentation."
CMD ["serve", "-s", "./build"]

View File

@ -21,5 +21,7 @@ WORKDIR /app/front
COPY --from=build /app/front/build ./build
RUN yarn global add serve
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 frontend."
CMD ["serve", "build"]

View File

@ -11,4 +11,7 @@ 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"]