Spaces:
Sleeping
Sleeping
| # ============================================================================= | |
| # SignFlow - Development Dockerfile | |
| # ============================================================================= | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgl1-mesa-glx \ | |
| libglib2.0-0 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender1 \ | |
| libgomp1 \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Node.js for frontend dev server | |
| RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ | |
| && apt-get install -y nodejs \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| COPY server/requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Install Node dependencies | |
| COPY package.json ./ | |
| RUN npm install | |
| # Copy config files | |
| COPY vite.config.ts tsconfig.json tsconfig.node.json index.html ./ | |
| # Start script | |
| COPY <<'EOF' /start-dev.sh | |
| #!/bin/bash | |
| cd /app/server && python app.py & | |
| cd /app && npm run dev -- --host 0.0.0.0 | |
| EOF | |
| RUN chmod +x /start-dev.sh | |
| CMD ["/start-dev.sh"] | |