forked from Whitetigerswt/SAMP_AC_v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (30 loc) · 1.85 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
FROM i386/ubuntu:14.04
USER root
WORKDIR /
LABEL maintainer="Whitetigerswt <[email protected]>" \
description="SAMP_AC_v2 Dockerfile"
# Update OS
RUN apt update && sudo apt upgrade -y
# Get required build files
RUN apt-get install build-essential git g++-4.4 wget -y
# Clone main repository
RUN git clone https://github.com/Whitetigerswt/SAMP_AC_v2.git
# Install Boost dependencies
RUN wget https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.bz2
RUN tar --bzip2 -xf ./boost_1_68_0.tar.bz2
RUN cd boost_1_68_0 && ./bootstrap.sh && ./b2
# Copy compiled binaries into the correct folder.
RUN cp ./boost_1_68_0/bin.v2/libs/chrono/build/gcc-4.8/release/link-static/threading-multi/libboost_chrono.a ./SAMP_AC_v2/Shared/libs --force
RUN cp ./boost_1_68_0/bin.v2/libs/date_time/build/gcc-4.8/release/link-static/threading-multi/libboost_date_time.a ./SAMP_AC_v2/Shared/libs --force
RUN cp ./boost_1_68_0/bin.v2/libs/filesystem/build/gcc-4.8/release/link-static/threading-multi/libboost_filesystem.a ./SAMP_AC_v2/Shared/libs --force
RUN cp ./boost_1_68_0/bin.v2/libs/system/build/gcc-4.8/release/link-static/threading-multi/libboost_system.a ./SAMP_AC_v2/Shared/libs --force
RUN cp ./boost_1_68_0/bin.v2/libs/thread/build/gcc-4.8/release/link-static/threadapi-pthread/threading-multi/libboost_thread.a ./SAMP_AC_v2/Shared/libs --force
RUN cd SAMP_AC_v2/ACv2_Server && make
RUN cd SAMP_AC_v2/ACv2_Server/bin && ld sampac.so && ldd sampac.so
RUN wget http://files.sa-mp.com/samp037svr_R2-1.tar.gz
RUN tar -xf samp037svr_R2-1.tar.gz
RUN mkdir samp03/plugins
RUN cp SAMP_AC_v2/ACv2_Server/bin/sampac.so samp03/plugins --force
WORKDIR /samp03
RUN wget https://gist.githubusercontent.com/Whitetigerswt/0264e22512e02a22beb04a1b4c9f0a04/raw/21dc64f5e79b4e727b1cc06013003849a738196c/gistfile1.txt
RUN cp gistfile1.txt server.cfg --force