Files
docker-swarm-termina/frontend/Dockerfile
Claude 205b753e9b Fix Dockerfile to copy all files and build Next.js app
- Change COPY * to COPY . to include subdirectories (public/, app/, etc.)
- Add npm run build step for Next.js production build
- Change CMD from node server.js to npm start for Next.js
2026-01-26 05:05:52 +00:00

9 lines
151 B
Docker

FROM node
WORKDIR /app
COPY . /app/
RUN npm i
RUN npm run build
RUN chmod +x /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["npm", "start"]