-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.linux
48 lines (44 loc) · 1.57 KB
/
Dockerfile.linux
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
FROM haxe:4.0.5-stretch
# HASHLINK
ENV HL_VERSION 1.10
RUN set -ex \
&& hlBuildDeps=' \
gcc \
g++ \
make \
cmake \
libpng-dev \
libturbojpeg-dev \
libvorbis-dev \
libopenal-dev \
libsdl2-dev \
libmbedtls-dev \
libuv1-dev \
libbluetooth-dev \
' \
&& apt-get update && apt-get install -y $hlBuildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
\
&& wget -O hashlink.tar.gz "https://github.com/HaxeFoundation/hashlink/archive/1.10.tar.gz" \
&& mkdir -p /usr/src/hl \
&& tar -xC /usr/src/hl --strip-components=1 -f hashlink.tar.gz \
&& rm hashlink.tar.gz \
&& cd /usr/src/hl \
&& make \
&& make install \
&& cp /usr/local/lib/libhl.so /usr/lib/ \
&& rm -r /usr/src/hl
# && apt-get purge -y --auto-remove $hlBuildDeps \
# PSMOVEAPI
ENV PSMOVEAPI_VERSION 4.0.8
RUN set -ex \
&& wget -O psmoveapi.tar.gz "https://github.com/thp/psmoveapi/releases/download/4.0.8/psmoveapi-4.0.8-linux.tar.gz" \
&& mkdir -p /usr/src/psmoveapi \
&& tar -xC /usr/src/psmoveapi --strip-components=1 -f psmoveapi.tar.gz \
&& rm psmoveapi.tar.gz \
&& mkdir -p /usr/local/share/host/native/psmoveapi/include \
&& mkdir -p /usr/local/share/host/native/lib/linux \
&& cp -R /usr/src/psmoveapi/include /usr/local/share/host/native/include \
&& cp /usr/src/psmoveapi/lib/* /usr/local/share/host/native/lib/linux \
&& rm -r /usr/src/psmoveapi \
&& haxelib git ammer https://github.com/Aurel300/ammer.git
ENTRYPOINT ["tail", "-f", "/dev/null"]