mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
Some checks failed
CI/CD Pipeline / backend-lint (push) Failing after 31s
CI/CD Pipeline / backend-build (push) Has been skipped
CI/CD Pipeline / frontend-lint (push) Failing after 1m24s
CI/CD Pipeline / frontend-build (push) Has been skipped
CI/CD Pipeline / e2e-test (push) Has been skipped
## 🛠️ Yarn v4 Migration & Fixes ### Deprecated Flag Replacement - **Replaced ** with in Dockerfile and CI workflow - **Updated Yarn v4 compatibility** across build and deployment pipelines ### Peer Dependency Resolution - **Added missing vis-network peer dependencies**: - - - - - - **Resolved vis-network dependency conflicts** with proper peer dependency versions ### Package Updates - **Updated @testing-library/dom** from ^8.19.0 to ^10.4.0 for React 18+ compatibility - **Updated TypeScript** to 5.7.3 for latest features and bug fixes - **Updated @tailwindcss/forms** to ^0.5.11 for better form styling - **Updated @tailwindcss/postcss** to ^4.1.18 for PostCSS compatibility ## 🔍 Dependency Health Improvements ### Version Conflicts Resolved - **Fixed @testing-library/dom version mismatch** that was causing peer dependency warnings - **Aligned vis-network ecosystem** with compatible peer dependency versions - **Updated build tooling** for Yarn v4 compatibility ### CI/CD Pipeline Updates - **Modernized Docker builds** with Yarn v4 --immutable flag - **Updated GitHub Actions workflows** to use correct Yarn v4 commands - **Maintained immutable lockfile enforcement** for reproducible builds ## 📦 Technical Benefits - **Zero peer dependency warnings** for production builds - **Yarn v4 full compatibility** across all environments - **Improved test infrastructure** with updated testing libraries - **Enhanced development experience** with latest tooling versions This commit ensures the project builds successfully with Yarn v4 and resolves all dependency conflicts while maintaining production stability.
33 lines
549 B
Docker
33 lines
549 B
Docker
# Frontend Production Dockerfile
|
|
FROM node:18-alpine AS builder
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY package*.json yarn.lock ./
|
|
|
|
# Install dependencies
|
|
RUN yarn install --immutable
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
# Build the application
|
|
RUN yarn build
|
|
|
|
# Production stage
|
|
FROM nginx:alpine
|
|
|
|
# Copy built assets from builder stage
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
|
|
# Copy nginx configuration
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
# Expose port
|
|
EXPOSE 80
|
|
|
|
# Start nginx
|
|
CMD ["nginx", "-g", "daemon off;"]
|