-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (46 loc) · 1.11 KB
/
Dockerfile
File metadata and controls
57 lines (46 loc) · 1.11 KB
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
FROM ubuntu:latest
RUN mkdir -p /mapsvrgo
COPY . /mapsvrgo
WORKDIR /mapsvrgo
RUN apt update
RUN apt install cmake g++ make git -y
RUN apt install protobuf-compiler libprotobuf-dev -y
RUN apt install libssl-dev -y
RUN apt install -y nodejs npm
WORKDIR /mapsvrgo
RUN git clone https://github.com/mfavant/avant.git avant_dir
WORKDIR /mapsvrgo/
RUN chmod +x ./*.sh
RUN ./copy_mapsvr2avant.sh
WORKDIR /mapsvrgo
RUN node ./generate_proto_lua.js ./protocol/ ./lua/ProtoLua/
WORKDIR /mapsvrgo/avant_dir
RUN cd external/LuaJIT-2.1.ROLLING \
&& make clean \
&& make -j3
WORKDIR /mapsvrgo/avant_dir
RUN cd protocol \
&& make \
&& cd .. \
&& mkdir build \
&& rm -rf ./build/* \
&& cd build \
&& cmake -DAVANT_JIT_VERSION=ON .. \
&& make -j3 \
&& cd .. \
&& cd bin \
&& ls
WORKDIR /mapsvrgo
RUN ./copy_avant_bin.sh
WORKDIR /mapsvrgo/testing
RUN apt install -y nodejs npm
RUN npm install
RUN npm run proto_gen
RUN npm run build
WORKDIR /mapsvrgo/dbsvrgo
RUN apt install -y golang
RUN chmod +x ./build.sh
RUN ./build.sh
WORKDIR /mapsvrgo
ENTRYPOINT ["/bin/bash", "-c"]
CMD ["./avant --mapsvr"]