Team Ai
Apppublic

Codexzzz/sql-env

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
Dockerfile22 linesDownload Raw Back to server
1FROM python:3.11-slim2 3WORKDIR /app4 5RUN apt-get update && \6    apt-get install -y --no-install-recommends curl git && \7    rm -rf /var/lib/apt/lists/*8 9# Copy requirements first (better Docker layer caching)10COPY requirements.txt /app/requirements.txt11RUN pip install --no-cache-dir -r /app/requirements.txt12 13# Copy the entire sql_env package14COPY . /app/env/15 16# Set PYTHONPATH so imports work17ENV PYTHONPATH="/app/env:$PYTHONPATH"18 19HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \20    CMD curl -f http://localhost:8000/health || exit 121 22CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]