add docker

This commit is contained in:
Sergey Krylov 2025-03-26 10:42:08 +03:00
parent 70bf30dd3b
commit 002b9de9e5

13
compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: '3.8'
services:
nextjs:
image: node:18-alpine
container_name: nextjs-app
working_dir: /app
volumes:
- ./:/app
ports:
- "3000:3000"
command: sh -c "npm ci && npm run build && npm run start"
restart: unless-stopped