CoolFace
Apppublic

Hariprita/nl2sql-openenv

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
Dockerfile23 linesDownload Raw Back to root
1FROM python:3.11-slim2 3WORKDIR /app4 5# Install curl for HEALTHCHECK6RUN apt-get update \7    && apt-get install -y --no-install-recommends curl \8    && rm -rf /var/lib/apt/lists/*9 10# Install Python dependencies first (maximise layer cache reuse)11COPY server/requirements.txt /tmp/requirements.txt12RUN pip install --no-cache-dir -r /tmp/requirements.txt13 14# Copy all application code15COPY . .16 17EXPOSE 786018 19HEALTHCHECK --interval=30s --timeout=10s --start-period=20s --retries=3 \20    CMD curl -f http://localhost:7860/health || exit 121 22CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]23