Tweak Dockerfile and add instructions on how to use it

This commit is contained in:
Maxr1998 2020-02-01 12:00:53 +01:00
parent 4dc4c3464c
commit 49deee8ba4
No known key found for this signature in database
GPG key ID: 3BA0CD3A11CDF7B8
2 changed files with 9 additions and 1 deletions

View file

@ -10,8 +10,11 @@ WORKDIR /nototools
RUN pip install -r requirements.txt
RUN pip install -e .
# Create output dir
RUN mkdir /output
ADD . /blobmoji
WORKDIR /blobmoji
# Build blobmoji font
CMD make -j $(nproc)
CMD make -j $(nproc) && cp NotoColorEmoji.ttf /output/

View file

@ -38,6 +38,11 @@ especially if you are using zopflipng for compression. Intermediate products
(compressed image files, for example) will be put into a build subdirectory; the
font will be at the top level.
## Docker build
Alternatively, you can also build the font within Docker through the provided Dockerfile.
Just run `docker build . -t blobmoji && docker run --rm -it -v "$PWD/output:/output" blobmoji`. The resulting font will reside in the 'output' folder in your current working directory.
## Using NotoColorEmoji
NotoColorEmoji uses the CBDT/CBLC color font format, which is supported by Android