-
-
Save clemos/4946cdae89040167eff7 to your computer and use it in GitHub Desktop.
Docker file for Haxe2
This file contains 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 ubuntu:latest | |
MAINTAINER Yohan Boutin <yohan.boutin@teads.tv> | |
RUN apt-get update | |
RUN apt-get -y upgrade | |
ENV HAXE_LIBRARY_PATH /usr/bin/haxelib | |
ENV HAXEPATH /usr/bin/haxe | |
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install git git-svn ocaml wget make libz-dev gcc libgc-dev libsqlite3-dev libgtk2.0-dev libmysqlclient15-dev libpcre3-dev | |
RUN \ | |
git clone -b neko18-fix --recursive https://github.com/clemos/neko.git && \ | |
cd neko && \ | |
make && \ | |
mkdir /usr/local/neko18 && \ | |
cp -Rf * /usr/local/neko18/ && \ | |
ln -s /usr/local/neko18/bin/neko* /usr/local/bin/ && \ | |
ln -s /usr/local/neko18/bin/libneko.so /usr/local/lib/ && \ | |
ln -s /usr/local/neko18/vm/*.h /usr/local/include/ && \ | |
mkdir /usr/local/lib/neko/ && \ | |
ln -s /usr/local/neko18/bin/*.ndll /usr/local/lib/neko/ && \ | |
ldconfig | |
# build haxe 2 from source | |
RUN \ | |
git clone -b v2-10-fix-ocaml4 --recursive https://github.com/clemos/haxe.git && \ | |
cd haxe && \ | |
make && \ | |
mkdir /usr/local/haxe2 && \ | |
cp -Rf std /usr/local/haxe2/ && \ | |
cp haxe* /usr/local/haxe2/ && \ | |
ln -s /usr/local/haxe2/haxe /usr/bin/haxe2 && \ | |
ln -s /usr/local/haxe2/haxelib /usr/bin/haxelib2 && \ | |
ln -s /usr/local/haxe2/haxedoc /usr/bin/haxedoc2 | |
RUN haxe2 | |
# RUN \ | |
# rm -f /$HAXEPATH && \ | |
# cp haxe $HAXEPATH && \ | |
# rm -rf /usr/lib/haxe && \ | |
# mkdir /usr/lib/haxe && \ | |
# cp -r std /usr/lib/haxe && \ | |
# mkdir /usr/lib/haxe/lib && \ | |
# chmod 777 /usr/lib/haxe/lib && \ | |
# cp haxelib $HAXE_LIBRARY_PATH && \ | |
# chmod +x /usr/bin/haxelib | |
# CMD /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment