-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (25 loc) · 788 Bytes
/
Dockerfile
File metadata and controls
36 lines (25 loc) · 788 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
FROM node:14
WORKDIR /usr/src/app
COPY package*.json ./
COPY mapcfgs ./mapcfgs
COPY maps ./maps
COPY src ./src
COPY vendor ./vendor
COPY config.json ./config.json
COPY tsconfig.json ./tsconfig.json
COPY war3 ./war3
#COPY libbncsutil.so ./libbncsutil.so
RUN npm install
RUN uname -a
RUN apt-get install -y libgmp-dev zlib1g-dev libbz2-dev
RUN cd ./vendor/bncsutil/src/bncsutil/ && make
RUN cp ./vendor/bncsutil/src/bncsutil/libbncsutil.so ./libbncsutil.so
RUN cp ./vendor/StormLib/Makefile.linux ./vendor/StormLib/Makefile
RUN cd ./vendor/StormLib/ && make
RUN cp ./vendor/StormLib/libStorm.so ./libstorm.so
#RUN make -f ./bncsutil/build/Makefile
#RUN make -f ./bncsutil/build/Makefile install
EXPOSE 6112:6112/udp
EXPOSE 6113:6113/udp
EXPOSE 6114:6114/udp
CMD ["npm", "start"]