FROM debian:stretch RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ git \ g++ \ libboost1.62-dev \ libboost-all-dev \ libncurses5-dev \ libncursesw5-dev \ libsdl2-dev \ libxerces-c-dev \ lua5.1 \ liblua5.1-0-dev \ libsdl2-image-2.0-0 \ libsdl2-image-dev \ make \ premake4 \ zlibc RUN apt-get clean # fetch the sotw repo RUN git clone https://github.com/prolog/shadow-of-the-wyrm # cd shadow-of-the-wyrm && \ # git checkout develop # build sotw RUN cd shadow-of-the-wyrm && \ premake4 --lua_include=/usr/include/lua5.1 --lua_link=lua5.1 gmake && \ make config=release # update ini to be curses by default RUN cd shadow-of-the-wyrm && \ sed -i 's/display=sdl/display=curses/g' swyrm.ini # remove git data from package RUN rm -rf shadow-of-the-wyrm/.git* RUN tar -czf shadow-of-the-wyrm.tar.gz shadow-of-the-wyrm/ CMD ["cp", "/shadow-of-the-wyrm.tar.gz", "/stage/"]