# Use a lightweight base image
FROM kicad/kicad:9.0

USER root

# Set non-interactive frontend to avoid prompts during installation
ENV DEBIAN_FRONTEND=noninteractive

# Install required dependencies
RUN apt-get update && apt-get install -y \
    build-essential \
    curl \    
    git \
    jq \
    openssh-client \
    python3 \
    python3-pip \
    ssh \
    unzip \
    wget \
    zip \
    && rm -rf /var/lib/apt/lists/*

# Create a symlink for `python` pointing to `python3`
RUN ln -s /usr/bin/python3 /usr/bin/python

# Set an entry point for the container
ENTRYPOINT [ "/bin/bash", "-c" ]
