mirror of
https://github.com/googlefonts/noto-emoji.git
synced 2025-07-08 21:36:59 +00:00
Optimize Dockerfile
This commit is contained in:
parent
9957b24acd
commit
9ac8776f44
2 changed files with 16 additions and 11 deletions
|
@ -1,5 +1,8 @@
|
||||||
|
Dockerfile
|
||||||
|
.dockerignore
|
||||||
add_emoji_gsub.pyc
|
add_emoji_gsub.pyc
|
||||||
build
|
build
|
||||||
waveflag
|
waveflag
|
||||||
|
|
||||||
.git/
|
.git/
|
||||||
|
fonts/
|
||||||
|
|
22
Dockerfile
22
Dockerfile
|
@ -1,20 +1,22 @@
|
||||||
FROM python:3.7
|
FROM python:3.7-slim
|
||||||
RUN apt update && apt install -y \
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install --no-install-recommends -y \
|
||||||
git \
|
git \
|
||||||
zopfli \
|
zopfli \
|
||||||
libcairo2-dev
|
libcairo2-dev \
|
||||||
|
make \
|
||||||
|
imagemagick \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install nototools
|
|
||||||
RUN git clone https://github.com/googlefonts/nototools.git /nototools
|
RUN git clone https://github.com/googlefonts/nototools.git /nototools
|
||||||
WORKDIR /nototools
|
WORKDIR /nototools
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install --no-cache -r requirements.txt && pip install --no-cache -e .
|
||||||
RUN pip install -e .
|
|
||||||
|
|
||||||
# Create output dir
|
|
||||||
RUN mkdir /output
|
|
||||||
|
|
||||||
ADD . /blobmoji
|
ADD . /blobmoji
|
||||||
WORKDIR /blobmoji
|
WORKDIR /blobmoji
|
||||||
|
|
||||||
# Build blobmoji font
|
RUN mkdir /output
|
||||||
|
|
||||||
CMD make -j $(nproc) && cp NotoColorEmoji.ttf /output/
|
CMD make -j $(nproc) && cp NotoColorEmoji.ttf /output/
|
||||||
|
|
Loading…
Add table
Reference in a new issue