From a9bc05372ddcbe84a6df9acdeae0ff3fd3118149 Mon Sep 17 00:00:00 2001 From: Sammy Teillet Date: Tue, 18 Apr 2023 14:22:52 +0200 Subject: [PATCH] chore: run build and start built version --- infra/prod/server/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infra/prod/server/Dockerfile b/infra/prod/server/Dockerfile index f170545574..bca3791a8f 100644 --- a/infra/prod/server/Dockerfile +++ b/infra/prod/server/Dockerfile @@ -7,5 +7,6 @@ RUN npm install WORKDIR /app/server COPY ./server . +RUN npm run build -CMD ["npm", "run", "start"] +CMD ["node", "dist/main"]