fleet/agents/g1/Dockerfile

20 lines
659 B
Docker

# sanad_api_g1 — G1 fleet MAP uploader. Self-contained, no ROS.
FROM python:3.10-slim-bookworm
# ca-certificates so outbound HTTPS to the fleet server validates.
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY sanad_api_g1.py .
# Writable state (upload fingerprints) — override with a volume in compose.
ENV STATE_DIR=/data/state
RUN mkdir -p /data/state
# Run as the loop by default; override the CMD for --once / --list / --dry-run.
ENTRYPOINT ["python", "-u", "sanad_api_g1.py"]