Upgrade node + npm in build files
This commit is contained in:
parent
431f8a6d57
commit
8c335c9967
4 changed files with 7 additions and 9 deletions
|
|
@ -9,24 +9,22 @@ RUN apt-get update && apt-get install -y \
|
|||
libxml2-dev \
|
||||
zip \
|
||||
unzip \
|
||||
nodejs \
|
||||
npm \
|
||||
nginx \
|
||||
default-mysql-client \
|
||||
&& docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd \
|
||||
&& pecl install 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
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
# Set working directory
|
||||
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 . .
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# Multi-stage build for FFR Laravel application
|
||||
FROM node:20 AS frontend-builder
|
||||
FROM node:22-alpine AS frontend-builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ const FeedStep: React.FC = () => {
|
|||
const firstFeed = feeds[0];
|
||||
setFormData({
|
||||
name: firstFeed.name || '',
|
||||
provider: firstFeed.provider || 'vrt',
|
||||
provider: (firstFeed.provider === 'vrt' || firstFeed.provider === 'belga') ? firstFeed.provider : 'vrt',
|
||||
language_id: firstFeed.language_id ?? 0,
|
||||
description: firstFeed.description || ''
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import React, { useState, useEffect } from 'react';
|
||||
import React, { useState } from 'react';
|
||||
import { Link, useNavigate } from 'react-router-dom';
|
||||
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
||||
import { apiClient, type PlatformAccountRequest } from '../../../lib/api';
|
||||
|
|
|
|||
Loading…
Reference in a new issue