feat: Add automated Docker image building and publishing to GHCR#150
Open
jollySleeper wants to merge 10 commits intozyachel:mainfrom
Open
feat: Add automated Docker image building and publishing to GHCR#150jollySleeper wants to merge 10 commits intozyachel:mainfrom
jollySleeper wants to merge 10 commits intozyachel:mainfrom
Conversation
- Exclude development files, dependencies, and documentation - Reduces build context size and improves build performance
…ments - Implement multi-stage build to reduce final image size - Add non-root user for better security - Use layer caching for faster builds - Install only production dependencies in final stage - Use Node LTS Alpine base image
- Build and push multi-arch images (AMD64/ARM64) to GHCR - Trigger only on published releases for tag-based deployment - Use semantic versioning for image tags - Include build caching for faster CI/CD
- Add tag push trigger to test the workflow before merging - Will be reverted after testing
- Enable workflow on pushes to feat/docker-optimization branch - Allows testing Docker builds during development
- Remove pnpm-lock.yaml from .dockerignore - Required for reproducible Docker builds
- Regenerate lockfile with current pnpm version - Fixes Docker build compatibility issues
- Add title, description, source, and license labels - Improves discoverability in container registries
- Add OCI annotations to workflow for proper metadata on GHCR - Fixes missing description in multi-arch container images - Uses index: prefix for manifest-level annotations
This reverts commit 3947904.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Overview
This PR introduces automated Docker image building and publishing to GitHub Container Registry (GHCR) with multi-architecture support and optimized build performance.
✨ Key Features
🐳 Docker Optimizations
🔄 CI/CD Pipeline
📦 Image Metadata
🛠️ Technical Details
Files Changed:
Dockerfile- Multi-stage build with security optimizations.dockerignore- Excludes unnecessary files from build context.github/workflows/release.yml- Automated release pipelinepnpm-lock.yaml- Updated for compatibilityBuild Process:
🎯 Benefits
🧪 Testing