FROM python:3.12-bookworm

RUN apt-get -y update && apt-get install -y \
    zsh curl git nano\
    && rm -rf /var/lib/apt/lists/*

RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# Set Zsh as the default shell
SHELL ["/bin/zsh", "-c"]

# Install plugins using Oh My Zsh
RUN git clone --depth 1 https://github.com/zsh-users/zsh-autosuggestions /root/.oh-my-zsh/custom/plugins/zsh-autosuggestions \
    && git clone --depth 1 https://github.com/zsh-users/zsh-syntax-highlighting /root/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting \
    && sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/' $HOME/.zshrc \
    && source $HOME/.zshrc

COPY requirements.txt .

RUN pip install -r requirements.txt

COPY . .

#CMD [ "python", "./misp.py"]

ENTRYPOINT ["zsh"]