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>
This commit is contained in:

committed by
GitHub

parent
05bb2e03f8
commit
fa6f0f6a79
@@ -1,27 +1,24 @@
|
|||||||
FROM --platform=$TARGETOS/$TARGETARCH ubuntu:24.04
|
FROM --platform=$TARGETOS/$TARGETARCH ubuntu:20.04
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
## add container user
|
|
||||||
RUN useradd -m -d /home/container -s /bin/bash container
|
|
||||||
|
|
||||||
## update base packages
|
## update base packages
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
|
|
||||||
## install dependencies
|
## install dependencies
|
||||||
RUN apt install -y iproute2 \
|
RUN apt install -y \
|
||||||
|
tini \
|
||||||
|
iproute2 \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
zip \
|
zip \
|
||||||
unzip \
|
unzip \
|
||||||
tar \
|
tar \
|
||||||
xz-utils \
|
xz-utils \
|
||||||
|
libssl1.1 \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
openssl \
|
openssl \
|
||||||
libssl3 \
|
|
||||||
default-libmysqlclient-dev \
|
default-libmysqlclient-dev \
|
||||||
libmysqlclient-dev \
|
|
||||||
libreadline-dev \
|
libreadline-dev \
|
||||||
libncurses-dev \
|
libncurses-dev \
|
||||||
libtool \
|
libtool \
|
||||||
@@ -36,7 +33,21 @@ RUN apt install -y iproute2 \
|
|||||||
RUN update-locale lang=en_US.UTF-8 && \
|
RUN update-locale lang=en_US.UTF-8 && \
|
||||||
dpkg-reconfigure --frontend noninteractive locales
|
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
|
WORKDIR /home/container
|
||||||
|
|
||||||
COPY ./entrypoint.sh /entrypoint.sh
|
# Set the stop signal
|
||||||
CMD [ "/bin/bash", "/entrypoint.sh" ]
|
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"]
|
Reference in New Issue
Block a user