-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0fa015d
Showing
4 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM ubuntu:24.04 | ||
LABEL com.docker.image.architecture=arm64 | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
wget \ | ||
curl \ | ||
gpg \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install box64 | ||
RUN wget https://ryanfortner.github.io/box64-debs/box64.list -O /etc/apt/sources.list.d/box64.list \ | ||
&& wget -qO- https://ryanfortner.github.io/box64-debs/KEY.gpg | gpg --no-tty --dearmor -o /etc/apt/trusted.gpg.d/box64-debs-archive-keyring.gpg \ | ||
&& apt-get update && apt-get install -y box64 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Setup steamcmd | ||
RUN mkdir -p /opt/steamcmd | ||
WORKDIR /opt/steamcmd | ||
RUN curl -sSL -o steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz \ | ||
&& tar -xzvf steamcmd.tar.gz \ | ||
&& rm steamcmd.tar.gz | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|
||
RUN mkdir -p /opt/unturned-config | ||
COPY start.sh /opt/unturned-config/start.sh | ||
RUN chmod +x /opt/unturned-config/start.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
services: | ||
unturned: | ||
container_name: unturned | ||
ports: | ||
- "27115:27115" | ||
volumes: | ||
- ./U3DS:/opt/U3DS | ||
restart: always | ||
stdin_open: true | ||
tty: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
cd /opt/steamcmd | ||
|
||
# If the .validate file exists, validate the server files | ||
if [ -f /opt/U3DS/.validate ]; then | ||
rm /opt/U3DS/.validate | ||
./steamcmd.sh +force_install_dir /opt/U3DS +login anonymous +app_update 1110390 validate +quit | ||
else | ||
./steamcmd.sh +force_install_dir /opt/U3DS +login anonymous +app_update 1110390 +quit | ||
fi | ||
|
||
mkdir -p /opt/U3DS/.steam/sdk32 | ||
mkdir -p /opt/U3DS/.steam/sdk64 | ||
cp linux32/steamclient.so /opt/U3DS/.steam/sdk32/ | ||
cp linux64/steamclient.so /opt/U3DS/.steam/sdk64/ | ||
|
||
cd /opt/U3DS | ||
mkdir -p Unturned_Headless_Data/Plugins/x86_64/ | ||
ln -sf ../.steam/sdk64/steamclient.so Unturned_Headless_Data/Plugins/x86_64/steamclient.so | ||
|
||
if [ ! -f start.sh ]; then | ||
cp /opt/unturned-config/start.sh ./start.sh | ||
chmod +x start.sh | ||
fi | ||
|
||
export LD_LIBRARY_PATH="./Unturned_Headless_Data/Plugins/x86_64/" | ||
exec ./start.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./ServerHelper.sh +InternetServer/unturned |