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