diff --git a/Dockerfile b/Dockerfile index 5b57ebee7..bc033b6f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,13 @@ -FROM python:3 +FROM python:3.10 WORKDIR /opt -RUN pip install --upgrade Pillow==5.4.1 idna==2.8 requests==2.21.0 urllib3==1.24.1 pycairo==1.20.1 gftools==0.7.4 fontmake==2.4.0 fontbakery==0.8.0 +RUN pip install --upgrade Pillow==11.0.0 idna==2.8 requests==2.32.3 urllib3==2.2.3 pycairo==1.20.1 gftools==0.7.4 fontmake==2.4.0 fontbakery==0.8.0 protobuf==3.20.1 RUN apt-get update && \ apt-get install -y ttfautohint && \ apt-get install -y woff2 && \ - apt-get install -y sfnt2woff-zopfli \ No newline at end of file + apt-get install -y sfnt2woff-zopfli + +COPY . /opt + +VOLUME [ "/opt/distr" ] \ No newline at end of file diff --git a/README.md b/README.md index 2f6cfd6c2..2132f952c 100644 --- a/README.md +++ b/README.md @@ -278,7 +278,7 @@ You can also limit the font weights that will be created with the `-w / --weight ./script/build.sh --features "ss02,ss08,ss10,cv03,cv07,cv14" --family-name "Fira Code straight" --weights "Regular,Bold" # or via a docker container (creates the family name 'Fira Code cv01 cv02 cv06 cv31 onum ss01 ss03 ss04 zero') -docker run --rm -v "${PWD}":/opt tonsky/firacode:latest ./script/build.sh -f "cv01,cv02,cv06,ss01,zero,onum,ss03,ss04,cv31" -n "features" +docker run --rm -v "${PWD}/output":/opt/distr tonsky/firacode:latest ./script/build.sh -f "cv01,cv02,cv06,ss01,zero,onum,ss03,ss04,cv31" -n "features" # in Git Bash from Git for Windows, or any other MSYS2 based shell, you might need to disable path conversion MSYS2_ARG_CONV_EXCL="*" docker run --rm -v "${PWD}":/opt tonsky/firacode:latest ./script/build.sh -f "ss02,ss03,ss04,ss05,ss06,ss07"