services: pipeline: build: context: . dockerfile_inline: | FROM python:3.11-slim WORKDIR /app COPY . . RUN pip install --no-cache-dir . ENV ROBOT_JSON=/config/robot.json EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \ CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/v1/health')" CMD ["python", "-m", "approbot_pipeline.api", \ "--robot", "/config/robot.json", \ "--host", "0.0.0.0", "--port", "8080"] image: approbot/pose-pipeline:1.0.0 container_name: approbot-pipeline restart: unless-stopped ports: - "8080:8080" volumes: - ./config/robot.json:/config/robot.json:ro environment: - ROBOT_JSON=/config/robot.json