Upgrade node + npm in build files

This commit is contained in:
myrmidex 2025-08-12 01:14:02 +02:00
parent 431f8a6d57
commit 8c335c9967
4 changed files with 7 additions and 9 deletions

View file

@ -9,24 +9,22 @@ RUN apt-get update && apt-get install -y \
libxml2-dev \ libxml2-dev \
zip \ zip \
unzip \ unzip \
nodejs \
npm \
nginx \ nginx \
default-mysql-client \ default-mysql-client \
&& docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd \ && docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd \
&& pecl install redis xdebug \ && pecl install redis xdebug \
&& docker-php-ext-enable redis xdebug && docker-php-ext-enable redis xdebug
# Install Node.js 22.x LTS (latest LTS version)
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y nodejs
# Install Composer # Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Set working directory # Set working directory
WORKDIR /var/www/html WORKDIR /var/www/html
# Install Node.js 20.x (for better compatibility)
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs
# Copy application code # Copy application code
COPY . . COPY . .

View file

@ -1,5 +1,5 @@
# Multi-stage build for FFR Laravel application # Multi-stage build for FFR Laravel application
FROM node:20 AS frontend-builder FROM node:22-alpine AS frontend-builder
WORKDIR /app WORKDIR /app

View file

@ -32,7 +32,7 @@ const FeedStep: React.FC = () => {
const firstFeed = feeds[0]; const firstFeed = feeds[0];
setFormData({ setFormData({
name: firstFeed.name || '', name: firstFeed.name || '',
provider: firstFeed.provider || 'vrt', provider: (firstFeed.provider === 'vrt' || firstFeed.provider === 'belga') ? firstFeed.provider : 'vrt',
language_id: firstFeed.language_id ?? 0, language_id: firstFeed.language_id ?? 0,
description: firstFeed.description || '' description: firstFeed.description || ''
}); });

View file

@ -1,4 +1,4 @@
import React, { useState, useEffect } from 'react'; import React, { useState } from 'react';
import { Link, useNavigate } from 'react-router-dom'; import { Link, useNavigate } from 'react-router-dom';
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
import { apiClient, type PlatformAccountRequest } from '../../../lib/api'; import { apiClient, type PlatformAccountRequest } from '../../../lib/api';