Add Dockerfile & ghcr container build workflow#94
Add Dockerfile & ghcr container build workflow#94spwoodcock wants to merge 4 commits intoOpenDroneMap:masterfrom
Conversation
|
Thanks for the PR, I will review it asap. |
There was a problem hiding this comment.
Pull request overview
Adds containerization support for Obj2Tiles so the CLI can be run without installing .NET locally, and introduces a GitHub Actions workflow to build/push a multi-arch image to GHCR on pushes/tags.
Changes:
- Add a multi-stage Dockerfile that publishes a self-contained (single-file, trimmed) Obj2Tiles binary and runs it in a minimal runtime image.
- Add a GitHub Actions workflow to build and push
linux/amd64+linux/arm64images to GHCR using Buildx with GHA caching.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| Dockerfile | Builds and publishes the Obj2Tiles CLI into a container image. |
| .github/workflows/image.yml | Builds/pushes a multi-arch GHCR image on pushes to master and on tags. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Ah of course, thanks! Still, I'm planning on running this in an automated way to generate 3d tiles, and would orchestrate the generation via container Jobs in Kubernetes. A container image would be super helpful 😄 Copilot actually suggested 3 reasonable things - fixing |
:mastertagged image on each push, in addition to tagged:v1.4.0tag when a new tag is pushed.