feat: add altv game image (#43)
This commit is contained in:
1
.github/workflows/games.yml
vendored
1
.github/workflows/games.yml
vendored
@@ -16,6 +16,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
game:
|
game:
|
||||||
|
- altv
|
||||||
- arma3
|
- arma3
|
||||||
- source
|
- source
|
||||||
steps:
|
steps:
|
||||||
|
@@ -75,6 +75,8 @@ is tagged correctly.
|
|||||||
|
|
||||||
### [Games](/games)
|
### [Games](/games)
|
||||||
|
|
||||||
|
* [`altv`](/games/altv)
|
||||||
|
* `ghcr.io/parkervcp/games:altv`
|
||||||
* [`arma3`](/games/arma3)
|
* [`arma3`](/games/arma3)
|
||||||
* `ghcr.io/parkervcp/games:arma3`
|
* `ghcr.io/parkervcp/games:arma3`
|
||||||
* [`source`](/games/source)
|
* [`source`](/games/source)
|
||||||
|
31
games/altv/Dockerfile
Normal file
31
games/altv/Dockerfile
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# ----------------------------------
|
||||||
|
# Environment: debian
|
||||||
|
# ----------------------------------
|
||||||
|
FROM node:16-bullseye
|
||||||
|
|
||||||
|
LABEL author="goover" maintainer="info@goover.de"
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
RUN useradd -m -d /home/container -s /bin/bash container
|
||||||
|
|
||||||
|
RUN apt update -y \
|
||||||
|
&& apt upgrade -y \
|
||||||
|
&& apt install -y gcc g++ libgcc-s1 lib32gcc-s1 gdb libc6 git wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \
|
||||||
|
libfontconfig1 libicu67 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev libduktape205 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates tzdata \
|
||||||
|
python3 dnsutils build-essential coreutils jq pcregrep
|
||||||
|
|
||||||
|
RUN wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
|
||||||
|
&& dpkg -i packages-microsoft-prod.deb \
|
||||||
|
&& apt update -y \
|
||||||
|
&& apt install -y dotnet-sdk-5.0 dotnet-sdk-6.0 libgdiplus
|
||||||
|
|
||||||
|
RUN update-locale lang=en_US.UTF-8 \
|
||||||
|
&& dpkg-reconfigure --frontend noninteractive locales
|
||||||
|
|
||||||
|
USER container
|
||||||
|
ENV USER=container HOME=/home/container
|
||||||
|
WORKDIR /home/container
|
||||||
|
|
||||||
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
CMD ["/bin/bash", "/entrypoint.sh"]
|
12
games/altv/entrypoint.sh
Normal file
12
games/altv/entrypoint.sh
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd /home/container
|
||||||
|
|
||||||
|
# Make internal Docker IP address available to processes.
|
||||||
|
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
|
||||||
|
|
||||||
|
# Replace Startup Variables
|
||||||
|
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||||
|
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
|
||||||
|
|
||||||
|
# Run the Server
|
||||||
|
eval ${MODIFIED_STARTUP}
|
Reference in New Issue
Block a user