Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| WORKDIR /home/user/app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Core application files | |
| COPY main.py . | |
| COPY ai_engine.py . | |
| COPY index.html . | |
| COPY builder.html . | |
| # Original 5 ref files at root (always available) | |
| COPY ref_landing.html . | |
| COPY ref_ecommerce.html . | |
| COPY ref_restaurant.html . | |
| COPY ref_portfolio.html . | |
| COPY ref_dashboard.html . | |
| # Copy entire designs/ folder (all 61 .md design skills + extra ref_*.html files) | |
| COPY designs/ ./designs/ | |
| # Flatten all ref_*.html from designs/ to root so load_ref() finds them instantly | |
| # This makes ref_gym.html, ref_music.html, ref_travel.html, ref_crypto.html, etc. all work | |
| RUN find ./designs -name "ref_*.html" -exec cp {} . \; 2>/dev/null || true | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |