-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
52 lines (40 loc) · 1.21 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
49
50
51
52
###########################################################
# Dockerfile that builds a Palworld Gameserver
###########################################################
FROM cm2network/steamcmd:root as build_stage
LABEL maintainer="jan@civitelli.de"
ENV STEAMAPPID 2394010
ENV STEAMAPP palworld
ENV STEAMAPPDIR "${HOMEDIR}/${STEAMAPP}-dedicated"
COPY etc/entry.sh "${HOMEDIR}/entry.sh"
RUN set -x \
# Install, update & upgrade packages
&& apt update \
&& apt install -y --no-install-recommends --no-install-suggests \
wget \
ca-certificates \
lib32z1 \
xdg-user-dirs \
&& mkdir -p "${STEAMAPPDIR}" \
# Add entry script
&& chmod +x "${HOMEDIR}/entry.sh" \
&& chown -R "${USER}:${USER}" "${HOMEDIR}/entry.sh" "${STEAMAPPDIR}" \
# Clean up
&& rm -rf /var/lib/apt/lists/* \
apt clean
FROM build_stage AS bullseye-base
ENV PW_SERVERNAME="New ${STEAMAPP} Server" \
PW_PORT=8211 \
PW_RCONPORT=25575 \
PW_PW="changeme" \
PW_MAXPLAYERS=32 \
PW_LOCATION="de" \
PW_ADMINPW="changeme"
COPY etc/DefaultPalWorldSettings_temp.ini "${HOMEDIR}/palworld-dedicated/DefaultPalWorldSettings_temp.ini"
# Switch to user
USER ${USER}
WORKDIR ${HOMEDIR}
CMD ["bash", "entry.sh"]
EXPOSE 8211/tcp \
8211/udp \
25575/tcp