feat: Add Docker setup for running kepler.gl demo app locally#3458
Conversation
Signed-off-by: Ihor Dykhta <ihordykhta@Ihors-MacBook-Pro.local>
There was a problem hiding this comment.
Pull request overview
Adds a docker/ setup to run the kepler.gl demo app locally via Docker, providing both a dev (watch) and production (static build) workflow.
Changes:
- Added dev + prod Dockerfiles for building/running
examples/demo-app. - Added a docker-compose configuration to start the demo app in dev or prod mode.
- Updated
.dockerignoreto reduce Docker build context size.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| docker/README.md | Documents Docker Compose and direct Docker workflows for dev/prod. |
| docker/Dockerfile.dev | Defines a development image intended to run the demo app in watch mode. |
| docker/Dockerfile | Defines a multi-stage production build that serves the static demo app via serve. |
| docker/docker-compose.yml | Provides kepler-dev and kepler-prod compose services. |
| .dockerignore | Excludes more repo directories from the Docker build context. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Impressive to see there is now the option to deploy keplergl demo-app via Local Docker Compose (dev or prod)! Quick question, are you also planning to allow for hosting the built docker container image (to ghcr.io or docker-hub)? Note it could be useful to open a dedicated github issue thread to gauge interest and let people watch for this one. |
Adds a docker/ directory with development and production Dockerfiles, a docker-compose file, and a README with usage instructions. Improves on #2986 by using local source (no git clone), Node 20, multi-stage production builds, and proper handling of the gl native package and xdg-open in containers. Also updates .dockerignore to reduce build context size.