Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # System deps | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy & install Python deps first for layer caching | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application, including the prebuilt frontend bundle in frontend/dist | |
| COPY . . | |
| # Install package so [project.scripts] is callable | |
| RUN pip install --no-cache-dir -e . | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PORT=8000 | |
| EXPOSE 8000 | |
| # Use the entry point declared in pyproject.toml | |
| CMD ["python", "-m", "server.app"] | |