From f6b5943fc666357e14985fde7964765e04cf7887 Mon Sep 17 00:00:00 2001 From: Ruslan <396223+khakimov@users.noreply.github.com> Date: Fri, 20 Oct 2023 03:57:00 +0700 Subject: [PATCH] chore: Pre build docker images (#2099) (#2131) chore: LABEL to link images source to github --- infra/prod/docs/Dockerfile | 2 ++ infra/prod/front/Dockerfile | 2 ++ infra/prod/server/Dockerfile | 3 +++ 3 files changed, 7 insertions(+) diff --git a/infra/prod/docs/Dockerfile b/infra/prod/docs/Dockerfile index 972258f32..385eb9992 100644 --- a/infra/prod/docs/Dockerfile +++ b/infra/prod/docs/Dockerfile @@ -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"] diff --git a/infra/prod/front/Dockerfile b/infra/prod/front/Dockerfile index 28b9ccc3b..88c156bc6 100644 --- a/infra/prod/front/Dockerfile +++ b/infra/prod/front/Dockerfile @@ -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"] diff --git a/infra/prod/server/Dockerfile b/infra/prod/server/Dockerfile index db6bed954..2e795682a 100644 --- a/infra/prod/server/Dockerfile +++ b/infra/prod/server/Dockerfile @@ -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"]