FROM python:3.9.2

RUN apt-get update && \
    apt-get install -y emacs git && \
    apt-get autoclean && \
    pip install 'Nikola[extras]' && \
    mkdir -p ~/.emacs.d/.local/straight/build && \
    git clone https://github.com/hniksic/emacs-htmlize.git ~/.emacs.d/.local/straight/build/htmlize