Team Ai
Apppublic

vinayaknandi05/sql-optimization-openenv

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
Dockerfile26 linesDownload Raw Back to root
1FROM python:3.11-slim2 3# HF Spaces requires this label4LABEL space_sdk="docker"5 6WORKDIR /app7 8# Install dependencies9COPY requirements.txt .10RUN pip install --no-cache-dir -r requirements.txt11 12# Copy source13COPY . .14 15# Create empty __init__.py for env package16RUN touch env/__init__.py17 18# HF Spaces runs on port 786019EXPOSE 786020 21# Health check22HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \23  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')"24 25CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]26