Introduce Dockerfile with production build using Bun, .dockerignore for efficient builds, and docker-compose.yml for easy local and prod deployment on port 3000.
16 lines
334 B
YAML
16 lines
334 B
YAML
services:
|
|
marketplace-scraper:
|
|
build: .
|
|
ports:
|
|
- "4005:4005"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=4005
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:4005/api/status"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 5s
|
|
restart: unless-stopped
|