update docker

This commit is contained in:
AnggerRevo5
2026-01-30 13:10:48 +07:00
parent 9df710d81e
commit 39bb79f848
31 changed files with 142 additions and 100887 deletions
+17
View File
@@ -0,0 +1,17 @@
# Build stage
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Runtime stage
FROM node:22-alpine
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --only=production
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/public ./public
EXPOSE 3000
CMD ["npm", "start"]