FROM debian

#RUN rm /bin/sh && ln -s /bin/bash /bin/sh

RUN apt update && apt install -y python3-pip python3-venv python3-dev\
    git zopfli pkg-config \
    libcairo2-dev imagemagick bash

WORKDIR /
COPY fontbuild.sh /
COPY run.sh /
RUN chmod +x fontbuild.sh
RUN chmod +x run.sh
RUN bash fontbuild.sh

# Should take 2-3 minutes to create noto-emoji/NotoColorEmoji.ttf

#RUN mv *.ttf /fonts

CMD ["/run.sh"]
