-
Notifications
You must be signed in to change notification settings - Fork 282
/
Dockerfile
46 lines (43 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Get image from Docker Hub
FROM ubuntu:18.04
# Specify the working directory
WORKDIR /AntSimulator
# Copy the current folder which contains C++ source code to the Docker image
COPY . /AntSimulator
# Update apps on the base image
RUN apt-get update && \
apt-get install -y \
# Install GCC, CMake, Git
gcc cmake build-essential git \
# Install additional libraries
libfreetype6-dev \
libjpeg-dev \
xorg-dev \
libxrandr-dev \
xcb \
libx11-xcb-dev \
libxcb-randr0-dev \
libxcb-image0-dev \
libgl1-mesa-dev \
libflac-dev \
libogg-dev \
libvorbis-dev \
libopenal-dev \
libpthread-stubs0-dev \
libudev-dev \
libxcursor-dev \
libxinerama-dev \
libxi-dev && \
# SFML static build
git clone https://github.com/SFML/SFML.git && \
cd SFML && \
rm -rf build && mkdir build && cd build && \
cmake -G "Unix Makefiles" -DBUILD_SHARED_LIBS=FALSE -DCMAKE_BUILD_TYPE=Release .. && \
cmake --build . && \
make install && \
cd ../../.. && \
# AntSimulator build
cd AntSimulator/ && \
rm -rf build && mkdir build && cd build && \
cmake -DCMAKE_PREFIX_PATH=/usr/local/cmake/SFML/ -DSFML_STATIC_LIBRARIES=TRUE -DCMAKE_BUILD_TYPE=Release .. && \
cmake --build .