-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
35 lines (25 loc) · 920 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM python:3.7.4-alpine3.10
ARG FIRA_VERSION=2
RUN apk update
RUN apk add --no-cache --virtual build git wget unzip
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing fontforge
ENV PREFIX=
ENV OUTPUT_NAME=
WORKDIR /usr/local/src
RUN git clone --depth 1 https://github.com/ToxicFrog/Ligaturizer.git /usr/local/src
RUN mkdir -p fonts/fira/distr && \
wget -O fira.zip https://github.com/tonsky/FiraCode/releases/download/${FIRA_VERSION}/FiraCode_${FIRA_VERSION}.zip && \
unzip fira.zip 'otf/*' -d fonts/fira/distr && \
rm fira.zip
# Patch in python 3 support until PR is merged https://github.com/ToxicFrog/Ligaturizer/pull/68
COPY python3.patch .
RUN git apply python3.patch
RUN apk del build && \
touch /input && \
mkdir -p /output && \
rm -rf input-fonts && \
rm -rf output-fonts
COPY run.sh .
RUN chmod +x run.sh
VOLUME /output
CMD ["./run.sh"]