Spaces:
Runtime error
Runtime error
| # Base image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy all environment files | |
| COPY . . | |
| # Install the environment as a package using the pyproject.toml we created | |
| RUN pip install --no-cache-dir -e . | |
| # Expose port | |
| EXPOSE 8000 | |
| # Health check | |
| HEALTHCHECK --interval=60s --timeout=10s --start-period=5s --retries=3 \ | |
| CMD curl -f http://localhost:8000/health || exit 1 | |
| # Run the server using the script defined in pyproject.toml | |
| CMD ["dipg-server"] |