jester1177/cloud-native-debug-env
0
1FROM python:3.11-slim2 3WORKDIR /app4 5# Install dependencies first (layer caching)6COPY requirements.txt .7RUN pip install --no-cache-dir -r requirements.txt && pip install --no-cache-dir aiofiles8 9# Copy application code10COPY server/ ./server/11COPY baseline_runner.py .12COPY inference.py .13COPY openenv.yaml .14 15# HuggingFace Spaces expects port 800016EXPOSE 800017 18# Health check19HEALTHCHECK --interval=30s --timeout=10s --retries=3 \20 CMD python -c "import requests; requests.get('http://localhost:8000/')" || exit 121 22CMD ["python", "-m", "uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]23 