-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile.teeware
55 lines (36 loc) · 888 Bytes
/
Dockerfile.teeware
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
# git clone https://github.com/matricks/bam bam && cd bam && git checkout v0.4.0
FROM alpine:3.19.4 AS bam
RUN apk add --no-cache \
gcc \
musl-dev
COPY bam /bam
WORKDIR /bam
RUN ./make_unix.sh
# ---
# git clone https://github.com/headshot2017/teeware-mod ./modes/teeware
FROM alpine:3.19.4 AS build
COPY ./modes/teeware /tw/sources
COPY scripts/* /usr/local/bin
# Set max ECON clients
ARG ECON_CLIENTS
RUN /bin/sh /usr/local/bin/patches.sh
RUN apk add --no-cache \
curl-dev \
gcc \
g++ \
libpng-dev \
python3 \
sqlite-dev
WORKDIR /tw/sources
COPY --from=bam /bam /bam
RUN /bam/bam -j "$(nproc)" server_release
# ---
FROM alpine:3.19.4 AS teeware
RUN apk add --no-cache \
libcurl \
libstdc++ \
sqlite-libs
COPY --from=build /tw/sources/TeeWare /tw/bin/TeeWare
COPY --from=build /tw/sources/maps /tw/data/maps
WORKDIR /tw/data
ENTRYPOINT ["/tw/bin/TeeWare"]