mirror of
https://github.com/arthur-pbty/learn.git
synced 2026-06-03 15:07:30 +02:00
feat: configure Docker setup and update dependencies for Next.js application
This commit is contained in:
+8
-7
@@ -1,10 +1,11 @@
|
||||
services:
|
||||
nextjs-app:
|
||||
image: node:20
|
||||
working_dir: /app
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- ./:/app
|
||||
command: sh -c "npm install && npm run build && npm run start"
|
||||
ports:
|
||||
- "3003:3000"
|
||||
restart: unless-stopped
|
||||
- /app/node_modules
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
command: npm run dev
|
||||
Reference in New Issue
Block a user