-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
92 lines (86 loc) · 2.2 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#
# NOTE: THIS DOCKERFILE IS GENERATED VIA "haxe update.hxml"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#
FROM buildpack-deps:stretch-scm
# ensure local haxe is preferred over distribution haxe
ENV PATH /usr/local/bin:$PATH
# runtime dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
libgc1c2 \
zlib1g \
libpcre3 \
libmariadb2 \
libsqlite3-0 \
libmbedcrypto0 \
libmbedtls10 \
libmbedx509-0 \
&& rm -rf /var/lib/apt/lists/*
# install neko, which is a dependency of haxelib
ENV NEKO_VERSION 2.3.0
RUN set -ex \
&& buildDeps=' \
gcc \
make \
cmake \
libgc-dev \
libssl-dev \
libpcre3-dev \
zlib1g-dev \
apache2-dev \
libmariadb-client-lgpl-dev-compat \
libsqlite3-dev \
libmbedtls-dev \
libgtk2.0-dev \
' \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
\
&& wget -O neko.tar.gz "https://github.com/HaxeFoundation/neko/archive/v2-3-0/neko-2.3.0.tar.gz" \
&& echo "850e7e317bdaf24ed652efeff89c1cb21380ca19f20e68a296c84f6bad4ee995 *neko.tar.gz" | sha256sum -c - \
&& mkdir -p /usr/src/neko \
&& tar -xC /usr/src/neko --strip-components=1 -f neko.tar.gz \
&& rm neko.tar.gz \
&& cd /usr/src/neko \
&& cmake -DRELOCATABLE=OFF . \
&& make \
&& make install \
\
&& apt-get purge -y --auto-remove $buildDeps \
&& rm -rf /usr/src/neko ~/.cache
# install haxe
ENV HAXE_VERSION 3.3.0-rc.1
ENV HAXE_STD_PATH /usr/local/share/haxe/std
RUN set -ex \
&& buildDeps=' \
make \
ocaml-nox \
ocaml-native-compilers \
ocaml-findlib \
zlib1g-dev \
libpcre3-dev \
libmbedtls-dev \
\
camlp4 \
libxml-light-ocaml-dev \
\
' \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& git clone --recursive --depth 1 --branch 3.3.0-rc1 "https://github.com/HaxeFoundation/haxe.git" /usr/src/haxe \
&& mkdir -p $HAXE_STD_PATH \
&& cp -r /usr/src/haxe/std/* $HAXE_STD_PATH \
\
\
&& cd /usr/src/haxe \
&& make all tools \
\
&& mkdir -p /usr/local/bin \
&& cp haxe haxelib /usr/local/bin \
&& mkdir -p /haxelib \
&& cd / && haxelib setup /haxelib \
\
\
&& rm -rf /var/lib/apt/lists/* \
&& apt-get purge -y --auto-remove $buildDeps \
&& rm -rf /usr/src/haxe ~/.cache
CMD ["haxe"]