-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
67 lines (52 loc) · 1.96 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
################################################################################
### Tribes & taserver
FROM ubuntu:20.04 as tribes
ARG TASERVER_RELEASE_TAG
ARG INCLUDE_CUSTOM_MAPS
WORKDIR /app
RUN apt-get update && apt-get install -y python3 python3-pip wget zstd unzip
RUN pip install certifi
# Download Tribes Ascend game files
COPY --from=chickenbellyfin/tribes-server-archive Tribes.tar.zst Tribes.tar.zst
RUN tar -I zstd -xf Tribes.tar.zst && rm Tribes.tar.zst
# Install community maps
COPY build/setup_custom_maps.sh setup_custom_maps.sh
RUN ./setup_custom_maps.sh
# For taserver development, uncomment this line and run
# zip -r taserver.zip ../taserver to create taserver.zip
# COPY taserver.zip taserver.zip
# Download & configure taserver
COPY build/install_taserver.sh install_taserver.sh
RUN ./install_taserver.sh
COPY build/gameserverlauncher.ini /app/taserver/data/gameserverlauncher.ini
COPY build/shared.ini /app/taserver/data/shared.ini
################################################################################
### Wine & final output
FROM ubuntu:20.04
WORKDIR /app
# disable any interactive prompts during install
ENV DEBIAN_FRONTEND=noninteractive
# Install python & xvfb
RUN \
apt-get update && \
apt-get install --no-install-recommends -y python3 python3-pip xvfb iptables && \
rm -rf /var/lib/apt/lists/*
# Install 32-bit wine
RUN \
dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y wine winetricks && \
rm -rf /var/lib/apt/lists/*
ENV WINEARCH=win32
ENV WINEPREFIX=/app/.wine
# Install vc++2017 and .NET 4.5 in wine
COPY build/install_ta_deps.sh install_ta_deps.sh
RUN ./install_ta_deps.sh && rm install_ta_deps.sh
# required by taserver
RUN pip install gevent certifi
# Get Tribes and taserver from previous stage
COPY --from=tribes /app/Tribes /app/Tribes
COPY --from=tribes /app/taserver /app/taserver
COPY build/run_taserver.sh .
ENTRYPOINT ["./run_taserver.sh"]
EXPOSE 7777/tcp 7777/udp 7778/tcp 7778/udp 9002/tcp