<reponame>QuintenQVD0/yolks
FROM        --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim

LABEL       author="QuintenQVD" maintainer="<EMAIL>"

RUN         dpkg --add-architecture i386  

RUN         apt update \
			&& rm /etc/apt/sources.list \
			&& echo "deb http://deb.debian.org/debian/ bullseye main non-free contrib" > /etc/apt/sources.list \
			&& echo "deb-src http://deb.debian.org/debian/ bullseye main non-free contrib" >> /etc/apt/sources.list \
			&& echo "deb http://security.debian.org/debian-security bullseye-security main non-free contrib" >> /etc/apt/sources.list \
			&& echo "deb-src http://security.debian.org/debian-security bullseye-security main non-free contrib" >> /etc/apt/sources.list \
			&& echo "deb http://deb.debian.org/debian/ bullseye-updates main" >> /etc/apt/sources.list \
			&& echo "deb-src http://deb.debian.org/debian/ bullseye-updates main" >> /etc/apt/sources.list \
			&& apt upgrade -y \
			&& apt install -y tar curl gcc g++ libgcc1 libcurl4-gnutls-dev:i386 libssl1.1:i386 libcurl4:i386 libtinfo6:i386 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat tzdata \
            && curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
            && apt -y --no-install-recommends install git-lfs \
            && apt install -y git git-lfs lib32gcc-s1 \
			&& apt update -y \
            && useradd -m -d /home/container container

USER        container
ENV         USER=container HOME=/home/container
WORKDIR     /home/container

COPY   		 ./entrypoint.sh /entrypoint.sh
CMD 		["/bin/bash", "/entrypoint.sh"] 
