CoolFace
Apppublic

A-Asif/Text2SQLQuery_Application

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes
Dockerfile30 linesDownload Raw Back to root
1FROM python:3.9-slim2 3WORKDIR /app4 5# Install system dependencies6RUN apt-get update && apt-get install -y \7    build-essential \8    curl \9    git \10    && rm -rf /var/lib/apt/lists/*11 12# Install Python dependencies13COPY requirements.txt .14RUN pip install --no-cache-dir -r requirements.txt || true15 16# Copy app files17COPY . .18 19# Create writable .streamlit folder20RUN mkdir -p /app/.streamlit21 22# Set environment variable so Streamlit writes config here23ENV STREAMLIT_HOME=/app/.streamlit24 25# Add default config file26RUN echo "[general]\nbrowser.gatherUsageStats = false\n\n[server]\nheadless = true\nport = 8501\nenableCORS = false" > /app/.streamlit/config.toml27 28# Run the app29CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]30