diff --git a/Dockerfile b/Dockerfile index 7437334..9f54485 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,12 @@ -FROM node:24-alpine AS builder - -WORKDIR /app - -COPY package*.json ./ -RUN npm install - -COPY . . -RUN npm run build - - FROM node:24-alpine WORKDIR /app COPY package*.json ./ -RUN npm install +RUN npm install --omit=dev -COPY --from=builder /app/dist ./dist -COPY --from=builder /app/data ./data +COPY . . EXPOSE 3000 -CMD ["node", "dist/index.js"] \ No newline at end of file +CMD ["node", "index.js"] \ No newline at end of file