1
0
Fork 0
mirror of synced 2024-05-21 04:53:25 +12:00

Dockerize build

This commit is contained in:
Tommy Wang 2020-06-17 15:06:57 -05:00 committed by Nikita Prokopov
parent 6fc75b41f9
commit f967f62036
7 changed files with 28 additions and 8 deletions

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM python:3
WORKDIR /opt
RUN pip install -U Pillow==5.4.1 idna==2.8 requests==2.21.0 urllib3==1.24.1
RUN pip install pycairo
RUN pip install git+https://github.com/googlefonts/gftools
RUN pip install fontmake
RUN apt-get update && \
apt-get install -y ttfautohint && \
apt-get install -y woff2 && \
apt-get install -y sfnt2woff-zopfli
RUN pip install fontbakery

7
Makefile Normal file
View file

@ -0,0 +1,7 @@
all: dep build
dep:
docker build -t fira:latest .
build:
docker run --rm -v ${PWD}:/opt fira:latest ./script/build

View file

@ -1,6 +1,6 @@
#!/bin/bash -e
source venv/bin/activate
[ -d venv ] && source venv/bin/activate
# ============================================================================
# VARIABLE FONT ==============================================================

View file

@ -1,6 +1,6 @@
#!/bin/bash -euo pipefail
source venv/bin/activate
[ -d venv ] && source venv/bin/activate
args=( "$@" )
default_weights=( "Light" "Regular" "Retina" "Medium" "SemiBold" "Bold" )

View file

@ -2,7 +2,7 @@
cd "`dirname $0`/.."
source venv/bin/activate
[ -d venv ] && source venv/bin/activate
DIR=distr/variable_ttf
FILE=FiraCode-VF.ttf

View file

@ -2,7 +2,7 @@
# requires sfnt2woff-zopfli (get from https://github.com/bramstein/homebrew-webfonttools)
cd "`dirname $0`/.."
source venv/bin/activate
[ -d venv ] && source venv/bin/activate
rm -rf distr/*/*.woff

View file

@ -2,7 +2,7 @@
# requires woff2_compress (get from https://github.com/bramstein/homebrew-webfonttools)
cd "`dirname $0`/.."
source venv/bin/activate
[ -d venv ] && source venv/bin/activate
rm -rf distr/*/*.woff2