New toolset for Docker

This commit is contained in:
Constantin A 2021-07-11 20:16:07 +02:00
parent 59de1c0feb
commit 6e05375407

View file

@ -1,20 +1,13 @@
FROM python:buster FROM ghcr.io/c1710/emoji_builder
RUN apt update && apt install -y \
git \
zopfli \
libcairo2-dev
# Install nototools COPY svg ./svg
RUN git clone https://github.com/googlefonts/nototools.git /nototools COPY third_party/region-flags/svg ./flags
WORKDIR /nototools COPY emoji_aliases.txt NotoColorEmoji.tmpl.ttx.tmpl Blobmoji.gpl ./
RUN pip install -r requirements.txt COPY AUTHORS CONTRIBUTORS CHANGES.md LICENSE ./
RUN pip install -e .
# Create output dir VOLUME /build
RUN mkdir /output VOLUME /output
ADD . /blobmoji CMD /github_workflow_setup.sh && \
WORKDIR /blobmoji /bin/emoji_builder -vv -b /build -o Blobmoji.ttf -O /output --flags ./flags blobmoji -w -a ./emoji_aliases.txt --ttx-tmpl ./NotoColorEmoji.tmpl.ttx.tmpl --palette ./Blobmoji.gpl && \
mv /output/Blobmoji_win.ttf /output/BlobmojiWindows.ttf
# Build blobmoji font
CMD make -j $(nproc) && cp NotoColorEmoji.ttf /output/