Build CV_Site_Nuxt with Dockerfile.dev, bind-mount the source into /app and shadow node_modules with a volume so the dependencies baked into the image stay visible. The dev server serves on port 3000.
11 lines
196 B
YAML
11 lines
196 B
YAML
services:
|
|
frontend:
|
|
build:
|
|
context: ../CV_Site_Nuxt
|
|
dockerfile: Dockerfile.dev
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ../CV_Site_Nuxt:/app
|
|
- /app/node_modules
|