场景描述
Currently, users who want to run GithubStarsManager need to clone the entire repository and build the frontend Docker image locally from the Dockerfile. This creates several friction points:
- Users must have Git installed and clone the full repository
- Build time overhead for every new deployment
- Inconsistent builds across different environments
- Difficult to track which frontend version is running without referencing git tags
By publishing frontend images to GHCR, users can simply reference the image in their docker-compose configuration, similar to how the backend is already published.
建议解决方案
Publish frontend Docker images to GHCR (GitHub Container Registry) and update the docker-compose.yml configuration:
- Set up GitHub Actions workflow to build and push frontend images to
ghcr.io/amintacccp/github-stars-manager-frontend on every release or on push to main
- Tag images with version numbers and
latest tag
- Update
docker-compose.yml to reference the published image instead of building locally:
frontend:
image: ghcr.io/amintacccp/github-stars-manager-frontend:${FRONTEND_IMAGE_TAG:-latest}
ports:
- "8080:80"
depends_on:
- backend
restart: unless-stopped
- Document the new deployment approach for users
附加说明
Related Work:
- Backend images are already published to GHCR at
ghcr.io/amintacccp/github-stars-manager-server
- The frontend Dockerfile is at the repository root and builds successfully
Benefits:
- Simplified deployment for users - no need to clone repository
- Faster deployments with pre-built images
- Better version tracking and reproducibility
- Aligns with container best practices
- Consistent with existing backend deployment model
场景描述
Currently, users who want to run GithubStarsManager need to clone the entire repository and build the frontend Docker image locally from the Dockerfile. This creates several friction points:
By publishing frontend images to GHCR, users can simply reference the image in their docker-compose configuration, similar to how the backend is already published.
建议解决方案
Publish frontend Docker images to GHCR (GitHub Container Registry) and update the docker-compose.yml configuration:
ghcr.io/amintacccp/github-stars-manager-frontendon every release or on push to mainlatesttagdocker-compose.ymlto reference the published image instead of building locally:附加说明
Related Work:
ghcr.io/amintacccp/github-stars-manager-serverBenefits: