10605c6739
- Add setupProxy.js to proxy API calls to backend container - Install http-proxy-middleware for development proxy support - Update docker-compose.dev.yml to use backend service name - Add HOST=0.0.0.0 to allow external connections to dev server - Add empty favicon.ico to prevent 500 errors - Update proxy configuration to use port 7510 This fixes the ERR_CONNECTION_REFUSED errors when the frontend tries to connect to the backend API in Docker environment. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
25 lines
438 B
Docker
25 lines
438 B
Docker
# Development Dockerfile for frontend
|
|
FROM node:20-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY package*.json ./
|
|
|
|
# Configure npm to use legacy peer deps
|
|
RUN npm config set legacy-peer-deps true
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy application files
|
|
COPY . .
|
|
|
|
# Expose the development server port
|
|
EXPOSE 7511
|
|
|
|
# Set the host to allow external connections
|
|
ENV HOST=0.0.0.0
|
|
|
|
# Start the development server
|
|
CMD ["npm", "start"] |