1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-13 17:18:37 +02:00
nerd-fonts/Dockerfile
Fini Jastrow 9514cbc509 docker: Fix fontforge problem
[why]
The docker image can not start fontforge:
  Error relocating /usr/bin/fontforge: FindProgRoot: symbol not found

[how]
The problem might be that we base on the 'latest' Alpine container, but
install a edge fontforge.

If I see this correct:
https://hub.docker.com/_/alpine/tags

'latest' is the same as latest-stable. Probably we should use a matching
apk repo.

Fixes: #1042 (maybe, need to push to test)

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-01-10 12:33:51 +01:00

19 lines
726 B
Docker

FROM alpine:latest
LABEL org.opencontainers.image.title="Nerd Fonts Patcher" \
org.opencontainers.image.description="Patches developer targeted fonts with a high number of glyphs (icons)." \
org.opencontainers.image.url="https://www.nerdfonts.com/" \
org.opencontainers.image.source="https://github.com/ryanoasis/nerd-fonts" \
org.opencontainers.image.licenses="MIT"
RUN apk update && apk upgrade && apk add --no-cache fontforge --repository=https://dl-cdn.alpinelinux.org/alpine/latest-stable/community && \
apk add --no-cache py3-pip && \
pip install configparser
ENV PYTHONIOENCODING=utf-8
VOLUME /in /out
COPY . /nerd
ENTRYPOINT [ "/bin/sh", "/nerd/bin/scripts/docker-entrypoint.sh" ]