Skip to content

Instantly share code, notes, and snippets.

@josuigoa
Created January 15, 2020 09:48
Show Gist options
  • Save josuigoa/5433d492e9d713227ebf6fa0baa6f805 to your computer and use it in GitHub Desktop.
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
version: '3'
services:
hl:
build: .
volumes:
- ./volume:/usr/local/share/host
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