Skip to content

The open alternative to Salesforce, designed for AI.

Fix prod install scripts

Charles Bochet16fbe5a607dd
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 147449f0cf4..91c4cade88c 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -18,10 +18,10 @@
"esbenp.prettier-vscode",
"GraphQL.vscode-graphql",
"prisma.prisma",
- "unifiedjs.vscode-mdx",
- "yoavbls.pretty-ts-errors",
- "graphql.vscode-graphql-syntax",
- "graphql.vscode-graphql"
+ "unifiedjs.vscode-mdx",
+ "yoavbls.pretty-ts-errors",
+ "graphql.vscode-graphql-syntax",
+ "graphql.vscode-graphql"
]
}
}
diff --git a/infra/prod/docs/Dockerfile b/infra/prod/docs/Dockerfile
index 2f77f59118e..00958e995f7 100644
--- a/infra/prod/docs/Dockerfile
+++ b/infra/prod/docs/Dockerfile
@@ -4,7 +4,7 @@ WORKDIR /app/docs
COPY ./docs/package.json .
COPY ./docs/yarn.lock .
-RUN yarn install
+RUN yarn install --prod
COPY ./docs .
RUN npm run build
diff --git a/infra/prod/front/Dockerfile b/infra/prod/front/Dockerfile
index 9597d6b9ed5..bdb22fe350b 100644
--- a/infra/prod/front/Dockerfile
+++ b/infra/prod/front/Dockerfile
@@ -8,7 +8,7 @@ COPY ../packages/ /app/packages
WORKDIR /app/front
COPY ./front .
-RUN yarn install
+RUN yarn install --prod
RUN yarn build
RUN yarn global add serve
diff --git a/infra/prod/server/Dockerfile b/infra/prod/server/Dockerfile
index 37c8c5c862b..397613d13a7 100644
--- a/infra/prod/server/Dockerfile
+++ b/infra/prod/server/Dockerfile
@@ -3,7 +3,7 @@ FROM node:18.16.0-alpine as server
WORKDIR /app/server
COPY ./server/package.json ./
COPY ./server/yarn.lock ./
-RUN yarn install
+RUN yarn install --prod
COPY ./server .
RUN npx prisma generate