# AIDO SMB → Onyx sync connector (Phase 1) FROM python:3.12-slim ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 WORKDIR /app COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt COPY app/ ./app/ # Non-root; state dir is a mounted volume so the manifest survives restarts. RUN useradd -u 10001 -m runner && mkdir -p /app/state && chown -R runner /app/state USER runner VOLUME ["/app/state"] CMD ["python", "-m", "app.main"]