From f7ae0b0ddf683f244cc0bc67177e43822e979c15 Mon Sep 17 00:00:00 2001 From: RedRock Date: Fri, 17 May 2024 09:03:38 +0300 Subject: [PATCH] fix: update dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fb48325..09abfae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,11 +5,11 @@ RUN mkdir -p ${APP_DIR} WORKDIR ${APP_DIR} COPY package*.json ./ -RUN npm ci && npm cache clean --force +RUN npm install COPY ./build ./ CMD ["npm", "run", "build"] # Run stage FROM node:20-alpine -COPY --from=build . . +COPY --from=build ./index.js ./ CMD ["node", "index.js"] \ No newline at end of file