Merge pull request #60 from ann4belle/master

Fix Dockerfile
This commit is contained in:
Constantin A 2021-06-18 14:17:52 +02:00 committed by GitHub
commit c22068a213
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 14 deletions

View file

@ -1,5 +1,8 @@
Dockerfile
.dockerignore
add_emoji_gsub.pyc add_emoji_gsub.pyc
build build
waveflag waveflag
.git/ .git/
fonts/

View file

@ -1,20 +1,22 @@
FROM python:buster FROM python:slim
RUN apt update && apt install -y \
git \ RUN apt-get update \
&& apt-get install --no-install-recommends -y \
make \
gcc \
zopfli \ zopfli \
libcairo2-dev libc-dev \
libpng-dev \
libcairo2-dev \
imagemagick \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install nototools RUN pip install --no-cache notofonttools
RUN git clone https://github.com/googlefonts/nototools.git /nototools
WORKDIR /nototools
RUN pip install -r requirements.txt
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/