sql-agent-backend / Dockerfile
Huzaifa1435's picture
Deploy AI SQL Agent Backend
345a446
Raw History Blame Contribute Delete
487 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all backend files
COPY . .
# Create required dirs
RUN mkdir -p database databases uploads backup logs
# Copy default DB if present (included in repo)
# If not present, users can upload via the UI
EXPOSE 7860
ENV FLASK_ENV=production
ENV PORT=7860
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--timeout", "120", "app:app"]