# Use an official Python runtime as a parent image
FROM python:3.12

ENV ANSIBLE_NETWORK_GROUP_MODULES="sonic"

RUN pip3 install ansible>=2.14 

# These are available, version can be verified by pip3 show <pkg>
RUN pip3 install paramiko>=2.7.2 
RUN pip3 install jinja2>=2.8 
RUN pip3 install ansible-core
RUN pip3 install ansible-base 
RUN pip3 install ansible-pylibssh

RUN pip install --force-reinstall ansible ansible-core

RUN apt-get update
RUN apt-get install -y iputils-ping
RUN apt-get install net-tools -y
RUN apt-get install vim -y
RUN apt-get install -y netcat-openbsd less sudo mtr screen tmux
RUN apt-get install -y sshpass openssh-client

# Set the entrypoint to use Ansible by default
ENTRYPOINT ["/bin/bash"]
