bigwolfe commited on
Commit
d47695b
·
1 Parent(s): 687dcda

Fix Dockerfile: use Node.js 20.x for React 19 compatibility

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -3,9 +3,11 @@ FROM python:3.11-slim
3
 
4
  WORKDIR /app
5
 
6
- # Install Node.js for frontend build
7
  RUN apt-get update && \
8
- apt-get install -y nodejs npm curl && \
 
 
9
  rm -rf /var/lib/apt/lists/*
10
 
11
  # Copy and install frontend dependencies
 
3
 
4
  WORKDIR /app
5
 
6
+ # Install Node.js 20.x for frontend build (required for React 19, Vite 7)
7
  RUN apt-get update && \
8
+ apt-get install -y curl gnupg && \
9
+ curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
10
+ apt-get install -y nodejs && \
11
  rm -rf /var/lib/apt/lists/*
12
 
13
  # Copy and install frontend dependencies