Fetch latest Twemoji version (#245)
This commit is contained in:
parent
a988b266ec
commit
8c26b1377c
1 changed files with 9 additions and 1 deletions
|
@ -2,11 +2,19 @@
|
||||||
FROM node:alpine
|
FROM node:alpine
|
||||||
|
|
||||||
RUN apk --no-cache upgrade
|
RUN apk --no-cache upgrade
|
||||||
RUN apk add --no-cache git cmake msttcorefonts-installer python3 alpine-sdk ffmpeg \
|
RUN apk add --no-cache git cmake msttcorefonts-installer python3 alpine-sdk ffmpeg wget rpm2cpio \
|
||||||
zlib-dev libpng-dev libjpeg-turbo-dev freetype-dev fontconfig-dev \
|
zlib-dev libpng-dev libjpeg-turbo-dev freetype-dev fontconfig-dev \
|
||||||
libtool libwebp-dev libxml2-dev pango-dev freetype fontconfig \
|
libtool libwebp-dev libxml2-dev pango-dev freetype fontconfig \
|
||||||
vips vips-dev
|
vips vips-dev
|
||||||
|
|
||||||
|
# gets latest version of twemoji
|
||||||
|
RUN mkdir /tmp/twemoji \
|
||||||
|
&& cd /tmp/twemoji \
|
||||||
|
&& package=$(wget --quiet -O - https://fedora.mirror.liteserver.nl/linux/development/rawhide/Everything/aarch64/os/Packages/t/ | grep twitter-twemoji | grep -o 'href="[^"]*' | tail -c +7) \
|
||||||
|
&& wget https://fedora.mirror.liteserver.nl/linux/development/rawhide/Everything/aarch64/os/Packages/t/$package && rpm2cpio $package | cpio -ivd \
|
||||||
|
&& cp ./usr/share/fonts/twemoji/Twemoji.ttf /usr/share/fonts/Twemoji.ttf \
|
||||||
|
&& rm -r /tmp/twemoji
|
||||||
|
|
||||||
# liblqr needs to be built manually for magick to work
|
# liblqr needs to be built manually for magick to work
|
||||||
# and because alpine doesn't have it in their repos
|
# and because alpine doesn't have it in their repos
|
||||||
RUN git clone https://github.com/carlobaldassi/liblqr \
|
RUN git clone https://github.com/carlobaldassi/liblqr \
|
||||||
|
|
Loading…
Reference in a new issue