To make it easier to use, this project could be distributed via a docker image. Create a…
- User
To make it easier to use, this project could be distributed via a docker image. Create a plan to add a docker image, github action to build it, npm build action, and documentation for usage. The image should be tagged with distance from the last semver tag. Ask me any questions you need to understand this request better. Offer options and alternative if you have a better option for distribution (for example, can it be packaged as an app for osx/linux)?
- Assistant
- User
Use fall back of v0.0.0-N. There is a v1.0.0 tag on this repo
- Assistant
Perfect — we’ll use fallback
v0.0.0-N, and since this repo already hasv1.0.0, normal tagging will resolve tov1.0.0-Nuntil next semver tag.Implementation Plan
- Add container packaging:
- Add container packaging:
- User
Execute the plan. Review the code before finishing each stage. Ensure tests pass. Commit when complete.
- Assistant
- User
Execute
- Assistant
Implemented end-to-end and committed.
I added Docker distribution, release publishing to GHCR with semver-distance tags, CI npm build checks, and docs, then validated each stage with code review plus full test/lint/build runs.
- Added containerization with multi-stage build and SPA runtime config in
Dockerfileandnginx.conf. - Added Docker context filtering in
.dockerignore. - Added local Docker npm scripts in
package.json. - Added release-triggered GHCR workflow in
.github/workflows/docker-release.yml:- Trigger:
release.published - Tags:
vX.Y.Z-Nfrom latest reachable semver tag + commit distance - Fallback:
v0.0.0-N - Extra trace tag:
- Trigger:
- Added containerization with multi-stage build and SPA runtime config in