-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
61 lines (54 loc) · 2 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM debian:stretch
RUN dpkg --add-architecture i386 \
&& apt-get -qq update \
&& apt-get -qq upgrade -y \
&& apt-get -qq install -y --no-install-recommends \
ca-certificates \
wget \
g++-multilib \
make \
git \
unzip \
vim \
less \
man \
libssl-dev:i386 \
libmariadb-dev:i386
# CMake
RUN \
CMAKE_VERSION=3.15.4 && \
mkdir -p /tmp/cmake && \
wget -q -O /tmp/cmake/cmake.sh https://cmake.org/files/v`expr "$CMAKE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`/cmake-${CMAKE_VERSION}-Linux-x86_64.sh && \
chmod +x /tmp/cmake/cmake.sh && \
./tmp/cmake/cmake.sh --prefix=/usr/local --exclude-subdir && \
rm -rf /tmp/cmake
# Boost
RUN \
BOOST_VERSION=1.69.0 && \
mkdir -p /tmp/boost && \
wget -q -O /tmp/boost/boost.tar.gz https://dl.bintray.com/boostorg/release/${BOOST_VERSION}/source/boost_`echo $BOOST_VERSION | sed 's|\.|_|g'`.tar.gz && \
tar xfz /tmp/boost/boost.tar.gz -C /tmp/boost/ --strip-components=1 && \
cd /tmp/boost && \
./bootstrap.sh --prefix=/usr/local --with-libraries=system,chrono,thread,regex,date_time,atomic && \
./b2 variant=release link=static threading=multi address-model=32 runtime-link=shared -j2 -d0 install && \
cd - && \
rm -rf /tmp/boost
# SA-MP server + includes
RUN \
mkdir -p /tmp/samp && \
wget -q -O /tmp/samp/sampsvr-linux.tar.gz http://files.sa-mp.com/samp037svr_R2-2-1.tar.gz && \
tar xfz /tmp/samp/sampsvr-linux.tar.gz -C /root/ && \
wget -q -O /tmp/samp/sampsvr-win32.zip http://files.sa-mp.com/samp037_svr_R2-2-1_win32.zip && \
unzip /tmp/samp/sampsvr-win32.zip pawno/include/* -d /root/samp03 && \
rm -rf /tmp/samp
# PAWN compiler
RUN \
PAWN_COMPILER_VERSION=3.10.9 && \
mkdir -p /tmp/pawncc && \
wget -q -O /tmp/pawncc/pawncc.tar.gz /~https://github.com/pawn-lang/compiler/releases/download/v${PAWN_COMPILER_VERSION}/pawnc-${PAWN_COMPILER_VERSION}-linux.tar.gz && \
tar xfz /tmp/pawncc/pawncc.tar.gz -C /usr/local/ --strip-components=1 && \
ldconfig && \
rm -rf /tmp/pawncc
COPY .bashrc /root
WORKDIR /root
CMD ["/bin/bash"]