Team Ai
Apppublic

hekaos/Text-to-SQL

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes
Dockerfile26 linesDownload Raw Back to root
1FROM python:3.11-slim2 3WORKDIR /app4 5# Install system dependencies for MySQL6RUN apt-get update && apt-get install -y \7    gcc \8    default-libmysqlclient-dev \9    pkg-config \10    && rm -rf /var/lib/apt/lists/*11 12# Copy requirements13COPY requirements.txt .14 15# Install Python dependencies16RUN pip install --no-cache-dir -r requirements.txt17 18# Copy application files19COPY backend.py .20COPY app.py .21 22# Expose Streamlit port (7860 for HF Spaces, 8501 for local)23EXPOSE 786024 25# Run Streamlit26CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]