Commit Graph

5 Commits

Author SHA1 Message Date
Damir Mukimov
40be6866b0 fix: optimize Dockerfile to use Yarn PnP instead of node-modules
- Use Yarn Plug'n'Play (PnP) for faster installs and smaller image size
- Keep .yarnrc.yml configuration instead of overriding it
- Copy PnP files (.pnp.cjs, .pnp.loader.mjs, .yarn cache) to production stage
- Use yarn workspaces focus --production for production dependencies
- Corepack manages Yarn version while PnP handles dependency resolution
2025-11-27 06:54:20 +01:00
Damir Mukimov
3ad0f9b538
Fix Yarn 4.x deprecated commands in Dockerfile
- Replace --frozen-lockfile with --immutable in builder stage
- Replace --frozen-lockfile --production with --immutable + autoclean in production stage
- This resolves the Yarn 4.9.0 deprecation warnings and build failures
2025-11-27 06:43:04 +01:00
Damir Mukimov
9c88cadd7a
chore: Update to latest GitHub Actions versions
- Update actions/checkout to v6
- Update actions/setup-node to v6
- Update actions/upload-artifact to v5
- Update Node.js to version 22 (Active LTS)
- Update Docker base images to node:22-alpine
2025-11-27 06:29:51 +01:00
Damir Mukimov
4e70fe0bb6
fix: Enable Corepack for Yarn 4.x compatibility in Docker build
- Enable Corepack in Dockerfile to support packageManager field
- Fix lint script to use TypeScript checking instead of invalid yarn check
- Remove manual yarn installation from Dockerfile since Corepack handles it
2025-11-27 06:17:20 +01:00
Damir Mukimov
39d8a4ef3d
fix: Add missing Dockerfile and lint script for CI/CD workflows
- Add Dockerfile for multi-stage Node.js build with production optimizations
- Add lint script to package.json that runs TypeScript type checking
- Enable health check endpoint in Docker container
- Configure proper user permissions and security practices

Fixes docker-build workflow failures and enables complete CI/CD pipeline.
2025-11-27 04:54:10 +01:00