Skip to content

Commit 6039776

Browse files
revert fix for docker file error
1 parent 85a1ef4 commit 6039776

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/frontend/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
# Multi-stage Dockerfile for React frontend with Python backend support using UV
22

33
# Stage 1: Node build environment for React
4-
FROM node:20-alpine AS frontend-builder
4+
FROM node:18-alpine AS frontend-builder
55

66
WORKDIR /app/frontend
77

88
# Copy package files first for better caching
99
COPY package*.json ./
1010

11-
# Install all dependencies (including devDependencies needed for tsc/vite build)
12-
RUN npm ci
11+
# Install dependencies
12+
RUN npm ci --silent
1313

1414
# Copy source files
1515
COPY . ./
1616

17+
RUN rm -rf node_modules && npm ci && npm rebuild esbuild --force
18+
1719
# Build the React app
1820
RUN npm run build
1921

0 commit comments

Comments
 (0)