add dockerfile

This commit is contained in:
Nareshkumar Rao 2025-04-02 21:27:04 +02:00
parent 711993220b
commit 70866e7f5b

View File

@ -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/