From fa6f0f6a79c827b26bd69cfe9c2674b892d071cf Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Mon, 2 Jun 2025 09:28:04 -0400 Subject: [PATCH] Downgrade MTA base os version (#302) * Downgrade MTA base os version MTA decided to downgrade their build container to 20.04 so we need to roll this back as well... * This needs libssl1.1 --------- Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com> --- games/mta/Dockerfile | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/games/mta/Dockerfile b/games/mta/Dockerfile index 3c6082b..e96b96e 100644 --- a/games/mta/Dockerfile +++ b/games/mta/Dockerfile @@ -1,27 +1,24 @@ -FROM --platform=$TARGETOS/$TARGETARCH ubuntu:24.04 - +FROM --platform=$TARGETOS/$TARGETARCH ubuntu:20.04 ENV DEBIAN_FRONTEND=noninteractive -## add container user -RUN useradd -m -d /home/container -s /bin/bash container - ## update base packages RUN apt update && \ apt upgrade -y ## install dependencies -RUN apt install -y iproute2 \ +RUN apt install -y \ + tini \ + iproute2 \ curl \ git \ zip \ unzip \ tar \ xz-utils \ + libssl1.1 \ apt-transport-https \ openssl \ - libssl3 \ default-libmysqlclient-dev \ - libmysqlclient-dev \ libreadline-dev \ libncurses-dev \ libtool \ @@ -36,7 +33,21 @@ RUN apt install -y iproute2 \ RUN update-locale lang=en_US.UTF-8 && \ dpkg-reconfigure --frontend noninteractive locales +## add container user +RUN useradd -m -d /home/container -s /bin/bash container + +# Set up user and working directory +USER container +ENV USER=container HOME=/home/container WORKDIR /home/container -COPY ./entrypoint.sh /entrypoint.sh -CMD [ "/bin/bash", "/entrypoint.sh" ] \ No newline at end of file +# Set the stop signal +STOPSIGNAL SIGINT + +# Copy and set up the entrypoint script +COPY --chown=container:container ./entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +# Define entrypoint and command +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] \ No newline at end of file