-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.multiplay
45 lines (37 loc) · 1.01 KB
/
Dockerfile.multiplay
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
# Base image
FROM unitymultiplay/linux-base-image
# Information
LABEL maintainer="FrozenFOXX <frozenfoxx@churchoffoxx.net>"
# Variables
ENV HOME=/root \
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn \
BUILD_DEPS="gnupg software-properties-common wget" \
CONFIG="" \
DEBIAN_FRONTEND=noninteractive \
DOOMWADDIR='/wads' \
FILES='' \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LC_ALL=C.UTF-8
# Install packages
USER root
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y ${BUILD_DEPS}
# Copy files
RUN mkdir -p /usr/local/etc && \
mkdir -p ${DOOMWADDIR}
COPY conf/* /usr/local/etc/
COPY scripts/* /usr/local/bin/
COPY wads/* ${DOOMWADDIR}/
# Set up Zandronum Server
RUN /usr/local/bin/install_zandronum_server.sh
# Add the zandronum user
RUN useradd -ms /bin/bash zandronum
# Clean up unnecessary packages
RUN apt-get remove -y ${BUILD_DEPS} && \
apt-get autoremove --purge -y && \
rm -rf /var/lib/apt/lists/*
# Launch process
USER mpukgame
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]