-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 882 Bytes
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 882 Bytes
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 debian:jessie
LABEL maintainer "Nazar Mokrynskyi <nazar@mokrynskyi.com>"
RUN \
apt-get update && \
apt-get upgrade -y && \
# python-fontforge is needed by glyphIgo in runtime
apt-get install -y --no-install-recommends git ca-certificates g++ make php5-cli python-fontforge && \
git clone --recursive https://github.com/google/woff2.git && \
cd woff2 && \
make clean all && \
mv woff2_compress woff2_decompress /usr/bin/ && \
cd .. && \
rm -rf woff2 && \
git clone https://github.com/pettarin/glyphIgo.git && \
mv glyphIgo/src/glyphIgo.py /usr/bin/glyphIgo && \
rm -rf glyphIgo && \
apt-get purge --auto-remove -y git ca-certificates g++ make && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Typical UID in single-user systems
USER 1000
ENV \
CHARS_IN_RANGE=100 \
FONT_FILE_PREFIX=ur
COPY splitter.php /
CMD php -d variables_order=E splitter.php