24 lines
1.2 KiB
Docker
24 lines
1.2 KiB
Docker
# ──────────────────────────────────────────────────────────────────
|
|
# Pipeline-Container: schlank, GPU-frei. Das eigentliche Produkt
|
|
# (Roboter-Pose aus Fotos — läuft auch mit echten Webcam-Bildern).
|
|
# Kein Blender, nur numpy/scipy/opencv. ~200 MB, CI-tauglich.
|
|
# ──────────────────────────────────────────────────────────────────
|
|
FROM python:3.11-slim
|
|
|
|
# libglib2.0-0 + libgomp1: von opencv(-headless) zur Laufzeit benötigt.
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
libglib2.0-0 libgomp1 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY setup/generateSets/requirements.pipeline.txt /tmp/req.txt
|
|
RUN pip install --no-cache-dir -r /tmp/req.txt
|
|
|
|
ENV ROBOT_JSON=/workspace/data/robot/robot.json
|
|
WORKDIR /workspace
|
|
|
|
# Flexibler Einstieg: python3 <script> ...
|
|
# docker compose run --rm pipeline pipeline/run_pipeline.py data/simulation/Scene8
|
|
# docker compose run --rm pipeline benchmark/run_benchmark.py --scenes 8
|
|
ENTRYPOINT ["python3"]
|
|
CMD ["pipeline/run_pipeline.py", "--help"]
|