/ services / system-sentinel / Dockerfile
Dockerfile
 1  FROM python:3.12-slim
 2  
 3  WORKDIR /app
 4  
 5  RUN apt-get update && apt-get install -y --no-install-recommends \
 6      openssh-client \
 7      iputils-ping \
 8      curl \
 9      && rm -rf /var/lib/apt/lists/*
10  
11  # Install Docker CLI
12  RUN curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-27.5.1.tgz \
13      | tar -xz --strip-components=1 -C /usr/local/bin docker/docker
14  
15  RUN pip install --no-cache-dir \
16      nats-py
17  
18  COPY agent.py ./
19  
20  CMD ["python", "agent.py"]