From 70866e7f5bfcfca5991a64d1677161079840ca9a Mon Sep 17 00:00:00 2001 From: Nareshkumar Rao Date: Wed, 2 Apr 2025 21:27:04 +0200 Subject: [PATCH] add dockerfile --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 11f3b3d..70592b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,16 @@ FROM node:current-alpine AS build -COPY . /app WORKDIR /app +COPY package.json package-lock.json ./ RUN npm install + +COPY ./prisma ./prisma RUN npx prisma generate + +COPY ./next.config.ts ./tsconfig.json ./eslint.config.mjs ./ +COPY ./src ./src + RUN npm run build RUN cp -r .next/static .next/standalone/.next/ @@ -12,4 +18,4 @@ FROM node:current-alpine AS production COPY --from=build /app/.next/standalone /app EXPOSE 3000 WORKDIR /app -CMD ["node", "server.js"] \ No newline at end of file +CMD ["node", "server.js"]