Gitea Mirror v3.0.1 Release Notes
🐛 Bug Fixes
Docker Container Startup Issues
- Fixed "Cannot find module '../src/lib/db/migrate'" error in Docker containers
- Made
manage-db.ts
script self-contained to work in production environments - Added missing
drizzle
migrations folder to Docker image - Resolved database path resolution issues in compiled scripts
🔧 Technical Details
Changes Made:
- Self-contained Scripts: Removed external module dependencies from
manage-db.ts
by inlining thegetDatabasePath
function - Docker Build: Added
COPY --from=builder /app/drizzle ./drizzle
to include migrations in the final image - Database Operations: Updated
resetUsers
function to use direct SQL instead of schema imports
Files Modified:
scripts/manage-db.ts
- Made self-contained for production useDockerfile
- Added drizzle migrations folder to runtime imagepackage.json
- Bumped version to 3.0.1
📦 Upgrade Instructions
If you're already on v3.0.0:
docker pull ghcr.io/arunavo4/gitea-mirror:v3.0.1
docker compose up -d
If you're on v2.x, please follow the v3.0.0 Upgrade Guide as this is still a breaking change.
✅ Verification
The Docker container now starts successfully with proper database migration support.