The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
chore: optimize size of front docker image (#965)
Lucas Vieirac13d6b4f60ea
diff --git a/infra/prod/front/Dockerfile b/infra/prod/front/Dockerfileindex 012c8fe9fd2..1a52b495758 100644--- a/infra/prod/front/Dockerfile+++ b/infra/prod/front/Dockerfile@@ -1,4 +1,4 @@-FROM node:18.16.0-alpine as front+FROM node:18.16.0-alpine as buildARG REACT_APP_API_URLARG REACT_APP_AUTH_URL@@ -12,6 +12,11 @@ COPY ./front .RUN yarn installRUN yarn build+FROM node:18.16.0-alpine as front++WORKDIR /app/front+COPY --from=build /app/front/build ./build+RUN yarn global add serveCMD ["serve", "-s", "build"]