15 lines
346 B
Docker
15 lines
346 B
Docker
|
|
FROM python:3.11-slim-bookworm
|
||
|
|
|
||
|
|
RUN apt-get update && apt-get install -y --no-install-recommends iputils-ping docker.io \
|
||
|
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
|
||
|
|
WORKDIR /app
|
||
|
|
COPY requirements.txt .
|
||
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
|
|
||
|
|
COPY agent ./agent
|
||
|
|
COPY config ./config
|
||
|
|
|
||
|
|
ENV PYTHONUNBUFFERED=1
|
||
|
|
CMD ["python", "-m", "agent.main"]
|