Created
November 4, 2019 17:21
-
-
Save fwsGonzo/82073729e7dc0c3fed784b1d5e3fe87a to your computer and use it in GitHub Desktop.
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:18.04 as base | |
RUN apt update | |
# dm2 dependencies | |
RUN apt install -y build-essential git cmake gcc-8 g++-8 libglfw3 liblua5.3-dev xorg-dev | |
# GLEW dependencies | |
RUN apt install -y libxmu-dev libxi-dev libgl-dev libglu-dev python | |
RUN git clone https://github.com/nigels-com/glew.git /usr/glew | |
WORKDIR /usr/glew | |
RUN make extensions | |
WORKDIR /usr/glew/build | |
RUN cmake ./cmake && make -j8 glew_s && make install | |
RUN mkdir -p /usr/dm2 /usr/dm2/build /usr/dm2/Debug | |
COPY ./CMakeLists.txt /usr/dm2 | |
COPY ./src /usr/dm2/src | |
COPY ./ext /usr/dm2/ext | |
COPY ./inc /usr/dm2/inc | |
COPY ./lib/libfmod.so.10 /usr/dm2/Debug | |
WORKDIR /usr/dm2/build | |
ENV CXX g++-8 | |
ENV CC gcc-8 | |
RUN cmake .. | |
RUN make -j8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment