39 lines
981 B
Docker
39 lines
981 B
Docker
|
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 /
|
||
|
#RUN git clone https://github.com/googlefonts/noto-emoji.git noto
|
||
|
#WORKDIR noto
|
||
|
#RUN git checkout v2018-01-02-flag-update svg/emoji_u1f52b.svg
|
||
|
|
||
|
#WORKDIR /
|
||
|
#RUN git clone https://salsa.debian.org/fonts-team/fonts-noto-color-emoji.git debfont
|
||
|
#WORKDIR debfont
|
||
|
#RUN cp /noto/svg/emoji_u1f52b.svg svg/emoji_u1f52b.svg
|
||
|
|
||
|
#RUN rm -rf venv # in case you have an old borked venv!
|
||
|
#RUN python3 -m venv venv
|
||
|
#RUN source venv/bin/activate
|
||
|
#RUN pip install -r requirements.txt
|
||
|
#RUN python size_check.py
|
||
|
#RUN rm -rf build/ && time make BYPASS_SEQUENCE_CHECK='True' -j 48
|
||
|
|
||
|
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"]
|
||
|
|