Files
agenticSeek/frontend/Dockerfile.frontend
T
guoyangzhen 7066f62942 fix(frontend): ensure react-scripts is available in Docker container
Use npm ci + npm rebuild for deterministic installs. Add verification
step that catches missing react-scripts early.

Fixes #411
2026-03-14 16:41:21 +08:00

20 lines
430 B
Docker

FROM node:18
WORKDIR /app
# Copy package files
COPY agentic-seek-front/package.json agentic-seek-front/package-lock.json ./
# Install dependencies with explicit bin linking
RUN npm ci && npm rebuild
# Copy application code
COPY agentic-seek-front/ .
# Verify react-scripts is available (catches install issues early)
RUN test -f node_modules/.bin/react-scripts || npm install react-scripts
EXPOSE 3000
CMD ["npm", "start"]