mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-04 14:39:01 +00:00
feat(games): update fivem image
This commit is contained in:
2 files changed
+30
-11
No files matched your search
+26
-7
@@ -1,8 +1,8 @@
|
|||||||
FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim
|
FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim
|
||||||
|
|
||||||
LABEL author="Michael Parker" maintainer="[email protected]"
|
LABEL author="Michael Parker" maintainer="[email protected]"
|
||||||
|
|
||||||
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
|
LABEL org.opencontainers.image.source="https://github.com/darksaid98/yolks"
|
||||||
LABEL org.opencontainers.image.licenses=MIT
|
LABEL org.opencontainers.image.licenses=MIT
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
@@ -18,9 +18,25 @@ RUN apt update \
|
|||||||
&& apt upgrade -y
|
&& apt upgrade -y
|
||||||
|
|
||||||
## Install dependencies
|
## Install dependencies
|
||||||
RUN apt install -y gcc g++ libgcc1 libc++-dev gdb libc6 git git-lfs wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \
|
RUN apt install -y gcc g++ libgcc-12-dev libc++-dev gdb libc6 git git-lfs wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat-traditional telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \
|
||||||
libfontconfig libicu67 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadbclient-dev-compat libduktape205 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates \
|
libfontconfig1 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev-compat libduktape207 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates \
|
||||||
liblua5.3-0 libz-dev rapidjson-dev tzdata libevent-dev libzip4 libprotobuf23 libfluidsynth2 procps libstdc++6
|
liblua5.3-0 libz3-dev libzadc4 rapidjson-dev tzdata libevent-dev libzip4 libprotobuf32 libfluidsynth3 procps libstdc++6 tini
|
||||||
|
|
||||||
|
# Temp fix for libicu66.1 for RAGE-MP and libssl1.1 for fivem and many more
|
||||||
|
RUN if [ "$(uname -m)" = "x86_64" ]; then \
|
||||||
|
wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu66_66.1-2ubuntu2.1_amd64.deb && \
|
||||||
|
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \
|
||||||
|
dpkg -i libicu66_66.1-2ubuntu2.1_amd64.deb && \
|
||||||
|
dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \
|
||||||
|
rm libicu66_66.1-2ubuntu2.1_amd64.deb libssl1.1_1.1.0g-2ubuntu4_amd64.deb; \
|
||||||
|
fi
|
||||||
|
# ARM64
|
||||||
|
RUN if [ ! "$(uname -m)" = "x86_64" ]; then \
|
||||||
|
wget http://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb && \
|
||||||
|
dpkg -i libssl1.1_1.1.1f-1ubuntu2_arm64.deb && \
|
||||||
|
rm libssl1.1_1.1.1f-1ubuntu2_arm64.deb; \
|
||||||
|
fi
|
||||||
|
|
||||||
## Configure Git Lfs
|
## Configure Git Lfs
|
||||||
RUN git lfs install
|
RUN git lfs install
|
||||||
|
|
||||||
@@ -31,6 +47,9 @@ RUN update-locale lang=en_US.UTF-8 \
|
|||||||
|
|
||||||
WORKDIR /home/container
|
WORKDIR /home/container
|
||||||
|
|
||||||
COPY ./entrypoint.sh /entrypoint.sh
|
STOPSIGNAL SIGINT
|
||||||
CMD [ "/bin/bash", "/entrypoint.sh" ]
|
|
||||||
|
|
||||||
|
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||||
|
RUN chmod +x /entrypoint.sh
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||||
|
CMD ["/entrypoint.sh"]
|
||||||
@@ -1,10 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /home/container
|
cd /home/container
|
||||||
|
|
||||||
# Make internal Docker IP address available to processes.
|
|
||||||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
|
||||||
export INTERNAL_IP
|
|
||||||
|
|
||||||
# Auto update resources from git.
|
# Auto update resources from git.
|
||||||
if [ "${GIT_ENABLED}" == "true" ] || [ "${GIT_ENABLED}" == "1" ]; then
|
if [ "${GIT_ENABLED}" == "true" ] || [ "${GIT_ENABLED}" == "1" ]; then
|
||||||
|
|
||||||
@@ -51,6 +47,10 @@ if [ "${GIT_ENABLED}" == "true" ] || [ "${GIT_ENABLED}" == "1" ]; then
|
|||||||
cd /home/container
|
cd /home/container
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Make internal Docker IP address available to processes.
|
||||||
|
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||||
|
export INTERNAL_IP
|
||||||
|
|
||||||
# Replace Startup Variables
|
# Replace Startup Variables
|
||||||
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||||
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
|
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
|
||||||
|
|||||||
Reference in new issue
Block a user