feat(fonts): change P&C font folder to carrot user

This commit is contained in:
Valvin 2019-07-20 21:53:03 +02:00
parent 816614d8a7
commit 2a2a8ab46c
1 changed files with 6 additions and 4 deletions

View File

@ -6,12 +6,14 @@ RUN apk --no-cache add zip libressl python2 python3 git npm jq curl \
&& npm install -g --unsafe-perm thumbsup \ && npm install -g --unsafe-perm thumbsup \
&& apk del .build-deps alpine-sdk \ && apk del .build-deps alpine-sdk \
&& python3 -m pip install requests && python3 -m pip install requests
RUN wget https://www.peppercarrot.com/0_sources/0ther/tools/zip/peppercarrot-fonts-latest.zip \ RUN addgroup -g 1001 carrot \
&& unzip -d /usr/share/fonts/ peppercarrot-fonts-latest.zip \
&& fc-cache -f \
&& addgroup -g 1001 carrot \
&& adduser -G carrot -D -u 1001 carrot \ && adduser -G carrot -D -u 1001 carrot \
&& cd /home/carrot \ && cd /home/carrot \
&& wget https://www.peppercarrot.com/0_sources/0ther/tools/zip/peppercarrot-fonts-latest.zip \
&& mkdir /home/carrot/.fonts && chown -R carrot: /home/carrot/.fonts \
&& unzip -d /home/carrot/.fonts peppercarrot-fonts-latest.zip \
&& mv /home/carrot/.fonts/fonts /home/carrot/.fonts/peppercarrot \
&& su -l carrot -c "fc-cache -fv" \
&& wget -O renderfarm-lite.py https://framagit.org/peppercarrot/tools/raw/master/utils/renderfarm-lite.py?inline=false \ && wget -O renderfarm-lite.py https://framagit.org/peppercarrot/tools/raw/master/utils/renderfarm-lite.py?inline=false \
&& chmod +x /home/carrot/renderfarm-lite.py && chmod +x /home/carrot/renderfarm-lite.py
USER 1001 USER 1001