-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (30 loc) · 914 Bytes
/
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
FROM ubuntu:21.04
# Install required software and srb2
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y software-properties-common build-essential libpng-dev zlib1g-dev libsdl2-dev libsdl2-mixer-dev libgme-dev libopenmpt-dev libcurl4-openssl-dev nasm git pkg-config \
&& git clone https://git.do.srb2.org/STJr/SRB2.git
WORKDIR /SRB2
RUN git checkout master \
&& make
# Setup volumes
VOLUME /config
VOLUME /addons
VOLUME /data
# Symlink for config
RUN ln -sf /config/adedserv.cfg /SRB2/bin/kartserv.cfg && ln -sf /addons /SRB2/bin/addons
# Expose network port
EXPOSE 5029/udp
# Copy bash script and fix execute permission
COPY srb2.sh /usr/bin/srb2.sh
RUN chmod a+x /usr/bin/srb2.sh
COPY models.dat \
patch.pk3 \
patch_music.pk3 \
player.dta \
srb2.pk3 \
zones.pk3 \
/SRB2/bin
# Set working directory
WORKDIR /SRB2
# Run script
ENTRYPOINT ["srb2.sh"]