Created
January 15, 2020 09:48
-
-
Save josuigoa/5433d492e9d713227ebf6fa0baa6f805 to your computer and use it in GitHub Desktop.
Dockerfile to get Haxe + HL linux environment. Used to build hl-extension project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
hl: | |
build: . | |
volumes: | |
- ./volume:/usr/local/share/host |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM haxe:4.0.5-stretch | |
ENV HL_VERSION 1.10 | |
RUN set -ex \ | |
&& hlBuildDeps=' \ | |
gcc \ | |
make \ | |
cmake \ | |
libpng-dev \ | |
libturbojpeg-dev \ | |
libvorbis-dev \ | |
libopenal-dev \ | |
libsdl2-dev \ | |
libmbedtls-dev \ | |
libuv1-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/ | |
ENTRYPOINT ["tail", "-f", "/dev/null"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment