-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (28 loc) · 822 Bytes
/
Dockerfile
File metadata and controls
37 lines (28 loc) · 822 Bytes
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
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y \
wget \
freeglut3-dev \
libplib-dev \
libopenal-dev \
libpng12-dev \
zlib1g-dev \
libogg-dev \
libvorbis-dev \
g++ \
libalut-dev \
libxi-dev \
libxmu-dev \
libxrandr-dev \
make \
patch
WORKDIR /tmp
RUN wget https://sourceforge.net/projects/torcs/files/all-in-one/1.3.4/torcs-1.3.4.tar.bz2/download -O torcs-1.3.4.tar.bz2
RUN tar xjf torcs-1.3.4.tar.bz2
WORKDIR torcs-1.3.4
RUN wget https://sourceforge.net/projects/cig/files/SCR%20Championship/Server%20Linux/2.1/scr-linux-patch.tgz/download -O scr-patch.tgz
RUN tar xzf scr-patch.tgz
RUN cd src && \
patch -p1 -f < ../scr-patch/patch.dat
RUN ./configure
RUN make && make install && make datainstall
CMD ["/usr/local/lib/torcs/torcs-bin"]