We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85a1ef4 commit 6039776Copy full SHA for 6039776
1 file changed
src/frontend/Dockerfile
@@ -1,19 +1,21 @@
1
# Multi-stage Dockerfile for React frontend with Python backend support using UV
2
3
# Stage 1: Node build environment for React
4
-FROM node:20-alpine AS frontend-builder
+FROM node:18-alpine AS frontend-builder
5
6
WORKDIR /app/frontend
7
8
# Copy package files first for better caching
9
COPY package*.json ./
10
11
-# Install all dependencies (including devDependencies needed for tsc/vite build)
12
-RUN npm ci
+# Install dependencies
+RUN npm ci --silent
13
14
# Copy source files
15
COPY . ./
16
17
+RUN rm -rf node_modules && npm ci && npm rebuild esbuild --force
18
+
19
# Build the React app
20
RUN npm run build
21
0 commit comments