formpilot-demo / Dockerfile
afulara's picture
Auto‑deploy from GitHub
587a9fe verified
# ─────────────────────────────────────────────────────────────
# Base image
FROM python:3.11-slim
# ─────────────────────────────────────────────────────────────
# Install Python deps
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# ─────────────────────────────────────────────────────────────
# Copy your code
COPY . .
# persist Qdrant data across restarts
ENV QDRANT_PERSIST=./qdrant_data
VOLUME ["/app/qdrant_data"]
EXPOSE 7860
ENV STREAMLIT_SERVER_HEADLESS=true
# ─────────────────────────────────────────────────────────────
# Run Streamlit
CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]