This commit is contained in:
Karim Pirzargar
2026-04-25 14:01:39 +03:30
parent eab516c7f3
commit 975e315de4
2 changed files with 29 additions and 23 deletions
+1 -14
View File
@@ -1,15 +1,4 @@
FROM node:22.19.0-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
#---
FROM node:22.19.0-alpine AS runner
@@ -17,9 +6,7 @@ WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public
COPY ./artifacts/node/ ./
ENV HOSTNAME="0.0.0.0"
EXPOSE 3000