-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
49 lines (34 loc) · 1.29 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
FROM ubuntu:jammy
LABEL org.opencontainers.image.authors="radical@radical.fun" version="2.0"
# Add new user
RUN useradd -m r5reloaded
# Copy
COPY --chown=r5reloaded:r5reloaded ./server/ ./winehq.key /home/r5reloaded/server/
# Install dependencies
RUN dpkg --add-architecture i386 && \
apt update -y && \
apt upgrade -y && \
apt install software-properties-common gnupg -y && \
cat /home/r5reloaded/server/winehq.key | apt-key add - && \
apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ jammy main' && \
apt update -y && \
apt install winehq-stable wine-stable wine-stable-amd64 wine-stable-i386 -y && \
apt purge software-properties-common gnupg -y && \
apt autoremove -y && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* /home/r5reloaded/server/winehq.key
# Swap to new user
USER r5reloaded
WORKDIR /home/r5reloaded/server
# Expose ports
EXPOSE 37000/udp
# Define environment
ENV ARGS="" \
NAME="An R5Reloaded Server" \
PLAYLIST="fs_dm" \
WINEDEBUG="-all" \
DEBIAN_FRONTEND=noninteractive \
WINEARCH=win64 \
WINEPREFIX=/home/r5reloaded/server/wineprefix \
HOME=/home/r5reloaded \
PORT=37000
ENTRYPOINT wine r5apex_ds.exe -noconsole -port ${PORT} +launchplaylist "${PLAYLIST}" +hostname "${NAME}" ${ARGS}