Fix Dockerfile crash (#264)
* Fix issue with Dockerfile.bot that stopped it from building. * Clean up code.
This commit is contained in:
parent
93dbadcd0f
commit
a0fdf1d4e8
1 changed files with 4 additions and 3 deletions
|
@ -5,13 +5,14 @@ RUN apk --no-cache upgrade
|
|||
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 \
|
||||
libtool libwebp-dev libxml2-dev pango-dev freetype fontconfig \
|
||||
vips vips-dev
|
||||
vips vips-dev grep
|
||||
|
||||
# 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 \
|
||||
&& package=$(wget --quiet -O - https://fedora.mirror.liteserver.nl/linux/development/rawhide/Everything/aarch64/os/Packages/t/ | grep -Po '(?<=href=")twitter-twemoji-fonts-[^"]*' | tail -1) \
|
||||
&& 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue