-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
49 lines (42 loc) · 1.45 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
# Original: https://gist.github.com/tasuten/0431d8af3e7b5ad5bc5347ce2d7045d7
# https://github.com/ejuarezg/containers/blob/master/iosevka_font/Dockerfile
# Run example
#
# docker run \
# -v ./build:/build \
# iosevka_build
FROM debian:buster-slim
ARG OTFCC_VER=0.10.4
ARG PREMAKE_VER=5.0.0-alpha15
ARG NODE_VER=14
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
build-essential \
jq \
file \
curl \
ca-certificates \
ttfautohint \
&& curl -sSL https://deb.nodesource.com/setup_${NODE_VER}.x | bash - \
&& apt-get install -y nodejs \
&& cd /tmp \
&& curl -sSLo premake5.tar.gz https://github.com/premake/premake-core/releases/download/v${PREMAKE_VER}/premake-${PREMAKE_VER}-linux.tar.gz \
&& tar xvf premake5.tar.gz \
&& mv premake5 /usr/local/bin/premake5 \
&& rm premake5.tar.gz \
&& curl -sSLo otfcc.tar.gz https://github.com/caryll/otfcc/archive/v${OTFCC_VER}.tar.gz \
&& tar xvf otfcc.tar.gz \
&& mv otfcc-${OTFCC_VER} otfcc \
&& cd /tmp/otfcc \
&& premake5 gmake \
&& cd build/gmake \
&& make config=release_x64 \
&& cd /tmp/otfcc/bin/release-x64 \
&& mv otfccbuild /usr/local/bin/otfccbuild \
&& mv otfccdump /usr/local/bin/otfccdump \
&& cd /tmp \
&& rm -rf otfcc/ otfcc.tar.gz \
&& rm -rf /var/lib/apt/lists/*
COPY run.sh /run.sh
WORKDIR /build
ENTRYPOINT ["/bin/bash", "/run.sh"]