
FROM statistician/stackops-slim:latest


# Set bash as default shell
SHELL ["/bin/bash", "-lc"]

RUN /root/.local/bin/devops software install --group agents

RUN cortex_install_dir="$(dirname "$(readlink /root/.local/bin/cortex)")" && \
    mv "$cortex_install_dir" /opt/cortex && \
    ln -s /opt/cortex/cortex /usr/local/bin/cortex

# Clean up of installer files.
RUN rm -rfd /root/tmp_results
RUN /root/.local/bin/uv clean && \
    rm -rfd /root/.cache/pip
    # npm cache clean --force

WORKDIR /root
CMD ["/usr/bin/bash"]
