From b0fa8f162f3b6224f6f5210822c35039317ea697 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sun, 28 Apr 2024 10:03:01 +0200 Subject: [PATCH] changed dockerfile to build and use index.js to server the project --- server/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/Dockerfile b/server/Dockerfile index 0018d28..04330d6 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -7,4 +7,5 @@ COPY package.json package-lock.json ./ RUN npm install COPY . . -CMD ["npm", "run", "start"] \ No newline at end of file +RUN npm run build +CMD ["node", "./dist/src/index.js"] \ No newline at end of file