Team Ai
Apppublic

jester1177/cloudnative-devops-debug-env

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
Dockerfile23 linesDownload Raw Back to root
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 786016EXPOSE 786017 18# Health check19HEALTHCHECK --interval=30s --timeout=10s --retries=3 \20    CMD python -c "import requests; requests.get('http://localhost:7860/')" || exit 121 22CMD ["python", "-m", "uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]23