fix: add curl and pass environment variables to Docker build

- Install curl in Alpine image for health checks
- Add ARG and ENV declarations for NEXT_PUBLIC_* variables in builder stage
- Pass build args from docker-compose.yml to Dockerfile
- Update health checks to use curl instead of node -e
- Update .env.example with helpful comments for Docker vs local dev

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
valknarness
2025-11-07 15:48:10 +01:00
parent 0c8f3e0d0f
commit 8fa5511660
3 changed files with 19 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
# Pastel API Configuration
# URL of the Pastel API instance
NEXT_PUBLIC_API_URL=http://localhost:3000
# For Docker Compose: use http://pastel-api:3001
# For local development: use http://localhost:3001
NEXT_PUBLIC_API_URL=http://localhost:3001
# Application URL (used for sharing and OG images)
NEXT_PUBLIC_APP_URL=http://localhost:3000