Files
yolks/games/rust/Dockerfile
2024-10-30 00:30:32 +01:00

22 lines
622 B
Docker

FROM --platform=$TARGETOS/$TARGETARCH node:18-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 \
&& mkdir /node_modules \
&& npm install --prefix /node_modules ws \
&& useradd -d /home/container -m container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
COPY ./wrapper.js /wrapper.js
CMD [ "/bin/bash", "/entrypoint.sh" ]