diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..d9ba7c34 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,35 @@ +FROM debian:stable +MAINTAINER SirMishaa + +RUN apt update && apt upgrade -y && apt install curl -y +RUN apt install git -y + +WORKDIR /usr/lib + +RUN git clone https://github.com/DigitalPulseSoftware/NazaraEngine NazaraEngine + +# Configure env for tzdata +ENV TZ=Europe/Brussels +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + +RUN apt install libopenal-dev libsndfile1-dev libfreetype6-dev libxcb-cursor-dev libxcb-ewmh-dev libxcb-randr0-dev \ + libxcb-icccm4-dev libxcb-keysyms1-dev libx11-dev mesa-common-dev libgl1-mesa-dev libassimp-dev libsdl2-dev -y + +WORKDIR /usr/lib/NazaraEngine/build + +RUN ./premake5-linux64 gmake + +WORKDIR /usr/lib/NazaraEngine/build/gmake + +# Install GCC +RUN apt install build-essential -y +RUN make -j4 + +WORKDIR /root/BurgWar/build + +RUN apt install qt5-default curl -y + +COPY config-docker.lua.default config.lua + +RUN ./premake5-linux64 gmake +RUN make diff --git a/build/config-docker.lua.default b/build/config-docker.lua.default new file mode 100644 index 00000000..6bdfc1d1 --- /dev/null +++ b/build/config-docker.lua.default @@ -0,0 +1,26 @@ +-- This file contains special configurations values, such as directories to extern libraries (Qt) +-- Please copy this file to a config.lua with your values + +-- Use separate directories option otherwise + +-- Use PackageFolder when directory contains include/bin(/lib) directories, use [Bin|Include|Lib]Path otherwise + +-- Curl precompiled binaries +cURL = { + PackageFolder = ":system" -- Use ":system" to tell this library is installed system-wide (typically on Linux) +} + +-- Nazara base directory (should contains bin, include and lib directories) +Nazara = { + PackageFolder = [[/usr/lib/NazaraEngine/package/]] +} + +-- Qt base directory (should contains bin, include and lib directories) +Qt = { + MocPath = [[/usr/lib/x86_64-linux-gnu/qt5/bin/moc]], + BinPath = [[/usr/lib/x86_64-linux-gnu/]], + LibPath = [[/usr/lib/x86_64-linux-gnu/]], + IncludePath = [[/usr/include/x86_64-linux-gnu/qt5/]] +} + +-- This work will work with root Dockerfile, you MUST NOT rename the file.