Make nextjs build standalone

This commit is contained in:
2025-10-06 20:30:50 +02:00
parent 7446b2fa3d
commit 63784a56ec
3 changed files with 6 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
FROM node:22-alpine AS build
ENV HOSTNAME="0.0.0.0"
WORKDIR /app
COPY package*.json ./
@@ -10,4 +12,4 @@ COPY . .
RUN npm run build
CMD ["npm", "start"]
CMD ["node", ".next/standalone/server.js"]