Created
April 11, 2021 05:04
-
-
Save shun-shobon/0de8a3580441dfd3ab6f2d9d915cd10b to your computer and use it in GitHub Desktop.
FontForge Image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:buster-slim AS build-env | |
RUN apt update | |
RUN apt upgrade | |
RUN apt install -y --no-install-recommends \ | |
libjpeg-dev \ | |
libtiff5-dev \ | |
libpng-dev \ | |
libfreetype6-dev \ | |
libgif-dev \ | |
libgtk-3-dev \ | |
libxml2-dev \ | |
libpango1.0-dev \ | |
libcairo2-dev \ | |
libspiro-dev \ | |
libuninameslist-dev \ | |
python3-dev \ | |
ninja-build \ | |
cmake \ | |
build-essential \ | |
gettext \ | |
git \ | |
ca-certificates \ | |
upx | |
ADD https://github.com/coord-e/magicpak/releases/download/v1.2.0/magicpak-x86_64-unknown-linux-musl /usr/bin/magicpak | |
RUN chmod +x /usr/bin/magicpak | |
RUN git clone https://github.com/fontforge/fontforge | |
WORKDIR /fontforge/build | |
RUN cmake -GNinja -DENABLE_GUI=off -DENABLE_PYTHON_SCRIPTING=off .. | |
RUN ninja | |
RUN magicpak bin/fontforge /bundle -v \ | |
--install-to /bin/ \ | |
--dynamic \ | |
--dynamic-arg -v \ | |
FROM scratch | |
ENV PATH /bin:$PATH | |
WORKDIR /workdir | |
COPY --from=build-env /bundle /. | |
CMD ["/bin/fontforge"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment