-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.bombtag
49 lines (48 loc) · 1.23 KB
/
Dockerfile.bombtag
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
# git clone --recursive https://github.com/furo321/ddnet-bombtag ./modes/ddnet-bombtag
FROM alpine:3.20.3 AS build
RUN apk add --no-cache \
cargo \
cmake \
curl-dev \
g++ \
gcc \
libpng-dev \
libwebsockets-dev \
mariadb-dev \
ninja \
python3 \
sqlite-dev
COPY ./modes/ddnet-bombtag /tw/sources
COPY scripts/* /usr/local/bin
# Set max ECON clients
ARG ECON_CLIENTS
RUN /bin/sh /usr/local/bin/patches.sh
WORKDIR /tw/build
RUN cmake /tw/sources \
-Wno-dev \
-DCMAKE_INSTALL_PREFIX=/tw/install \
-DANTIBOT=ON \
-DAUTOUPDATE=OFF \
-DCLIENT=OFF \
-DDEV=OFF \
-DIPO=ON \
-DMYSQL=ON \
-DPREFER_BUNDLED_LIBS=OFF \
-DVIDEORECORDER=OFF \
-DVULKAN=OFF \
-DWEBSOCKETS=ON \
-GNinja
RUN cmake --build . -t install
# ---
FROM alpine:3.20.3 AS ddnet
RUN apk add --no-cache \
libcurl \
libstdc++ \
libwebsockets \
mariadb-connector-c \
sqlite-libs
COPY --from=build /tw/install/bin /tw/bin
COPY --from=build /tw/install/share/ddnet/data/maps /tw/data/maps
COPY --from=build /tw/install/lib /tw/lib
WORKDIR /tw/data
ENTRYPOINT ["/tw/bin/DDNet-Server"]