FROM python:3.11-slim-bookworm RUN apt-get update && apt-get install -y --no-install-recommends \ libgl1 libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* WORKDIR /app RUN pip install --no-cache-dir torch torchvision \ --index-url https://download.pytorch.org/whl/cpu COPY requirements-docker.txt . RUN pip install --no-cache-dir -r requirements-docker.txt COPY . . RUN sed -i 's/\r$//' docker/entrypoint.sh \ && chmod +x docker/entrypoint.sh ENV PYTHONPATH=/app ENV EVENTS_JSONL=/app/data/events/output.jsonl EXPOSE 8000 ENTRYPOINT ["/bin/sh", "/app/docker/entrypoint.sh"]