fix: Resolve Docker build failures for frontend and backend

Backend fix:
- Add python3-dev to build dependencies for psutil compilation
- psutil requires Python development headers to build C extensions

Frontend fix:
- Explicitly copy package-lock.json to ensure it's available for npm ci
- Add verification step to confirm package-lock.json exists before npm ci
- Prevents "npm ci" usage errors due to missing lock file
This commit is contained in:
Claude
2025-11-21 11:53:51 +00:00
parent fd904ab547
commit 8f83bacdb9
2 changed files with 5 additions and 4 deletions

View File

@@ -3,9 +3,10 @@ FROM python:3.11-slim as builder
WORKDIR /app
# Install system dependencies
# Install system dependencies for building Python packages
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install dependencies

View File

@@ -4,10 +4,10 @@ FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files
COPY package*.json ./
COPY package.json package-lock.json ./
# Install dependencies
RUN npm ci
# Verify package-lock.json exists and install dependencies
RUN test -f package-lock.json && npm ci
# Copy source code
COPY . .