FROM sago007/mxe_basic MAINTAINER poul@poulsander.com RUN apt-get update && apt-get install -y zip && rm -rf /var/lib/apt/lists/* WORKDIR /usr/src/mxe RUN make vorbis curl sdl2 openal RUN adduser --disabled-password --gecos "OpenArena user" openarena && \ mkdir -p /data && chmod 777 /data && \ mkdir -p /staging && chmod 777 /staging VOLUME ["/data"] COPY engine_compile_script.sh /opt/ #ADD http://files.poulsander.com/~poul19/public_files/libxmp-4.3.13.tar.gz /tmp/ #RUN chmod 666 /tmp/libxmp-4.3.13.tar.gz #This does not create a correct static library. We likely need to generate a new configure file that supports cross compiling static libraries or libxmp needs a fix. #RUN cd /tmp && tar -xzf libxmp-4.3.13.tar.gz && cd libxmp* && ./configure --host=i686-w64-mingw32.static --enable-static --disable-shared && make && cp /tmp/libxmp-4.3.13/lib/libxmp.a /usr/lib/mxe/usr/i686-w64-mingw32.static/lib/ USER openarena