edit Dockerfile

This commit is contained in:
Omar Ahmed
2025-10-01 01:29:56 +03:00
parent 89b0955c24
commit 13b5341f35
+1 -3
View File
@@ -1,4 +1,3 @@
# Stage 1: Build
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
@@ -6,11 +5,10 @@ RUN npm install
COPY . .
RUN npm run build
# Stage 2: Run
FROM node:18-alpine
WORKDIR /app
COPY --from=builder /app ./
EXPOSE 3000
ENV PORT=3000
CMD ["npx", "next", "start", "-p", "3000"]