add: games_rust with oxide staging support

This commit is contained in:
Quinten
2024-05-10 10:32:21 +02:00
committed by GitHub
parent b177dcc194
commit c2e9695479
3 changed files with 72 additions and 0 deletions

23
games/rust/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN dpkg --add-architecture i386 \
&& apt update \
&& apt upgrade -y \
&& apt install -y lib32gcc-s1 lib32stdc++6 unzip curl iproute2 tzdata libgdiplus libsdl2-2.0-0:i386 tini \
&& useradd -d /home/container -m container
# To-Do add and download new golang wrapper here
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
STOPSIGNAL SIGINT
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.sh"]