forked from alibo/bombsquad-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (22 loc) · 978 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
FROM ubuntu:22.04
LABEL maintainer="https://github.com/mayurmarvel"
ARG BOMBSQUAD_VERSION="1.7.37"
# Set non-interactive mode
ENV DEBIAN_FRONTEND=noninteractive
# Add deadsnakes PPA for Python 3.12 and install packages
RUN apt-get -y update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get -y update && \
apt-get install -y wget python3.12 libpython3.12 locales libsdl2-2.0-0 && \
rm -rf /var/lib/apt/lists/* && \
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
WORKDIR /app
ENV TAR_FILE=BombSquad_Server_Linux_x86_64_${BOMBSQUAD_VERSION}
RUN wget https://files.ballistica.net/bombsquad/builds/$TAR_FILE.tar.gz -O bombsquad.tar.gz && \
tar -xzf bombsquad.tar.gz --strip-components 1 && \
rm -f config.yaml # removing default config file in order to put ourselves
COPY config.yaml .
EXPOSE 43210/udp
CMD ["/app/bombsquad_server"]