build: add Dockerfile
Some checks failed
CI / Lint & Type Check (push) Failing after 58s
CI / Build & Test (push) Has been skipped
CI / Commit Lint (push) Failing after 6s

This commit is contained in:
2026-01-18 20:17:09 +00:00
parent 9908be6a0a
commit 44ce63e35d

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"]