Newer
Older
cortex-hub / agent-node / Dockerfile
# agent-node/Dockerfile
FROM python:3.11-slim

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

# Install system dependencies for psutil and networking tools
RUN apt-get update && apt-get install -y \
    build-essential \
    curl \
    iperf3 \
    net-tools \
    iputils-ping \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the node code
COPY . .

# Run the node
CMD ["python", "src/agent_node/main.py"]