-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.multiplay.novnc
61 lines (53 loc) · 1.21 KB
/
Dockerfile.multiplay.novnc
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
# Base image
FROM unitymultiplay/linux-base-image
# Information
LABEL maintainer="FrozenFOXX <frozenfoxx@churchoffoxx.net>"
# Variables
ENV HOME=/root \
APP_DEPS=" \
libglu1-mesa \
libgtk2.0 \
net-tools \
supervisor \
novnc \
websockify \
x11vnc \
xvfb " \
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn \
BUILD_DEPS=" \
git \
gnupg \
software-properties-common \
wget" \
DEBIAN_FRONTEND=noninteractive \
DISPLAY_PORT=0 \
DISPLAY_WIDTH=1280 \
DISPLAY_HEIGHT=720 \
DOOMWADDIR='/wads' \
FILES='' \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LC_ALL=C.UTF-8 \
NOVNC_PORT=8080 \
RFB_PORT=5900
# Install packages
USER root
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y ${APP_DEPS} ${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
RUN /usr/local/bin/install_zandronum.sh
# Clean up unnecessary packages
RUN apt-get autoremove --purge -y ${BUILD_DEPS}
RUN rm -rf /var/lib/apt/lists/*
# Expose ports
EXPOSE ${NOVNC_PORT}
# Launch processes
USER mpukgame
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]