build: add Dockerfile

This commit is contained in:
2026-01-18 20:21:39 +00:00
parent 266d6c162f
commit 465e1f4336

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:18-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./package.json
EXPOSE 3000
CMD ["npm", "start"]