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