pavlo-kostyshyn/buildrules icon
public
Published on 6/3/2025
Build Rules

Rules

Build & Development Commands

  • Use multi-stage Docker builds to minimize image size. - Always define .dockerignore to exclude unnecessary files. - Use environment variables via .env and pydantic.BaseSettings. - Organize FastAPI routers with APIRouter in modular route files. - Prebuild the frontend with vite build before creating production image. - Split backend config: dev, test, prod.