Files
yolks/games/rust/Dockerfile
Michael (Parker) Parker 51edfd31b6 Changed wrapper location
Installing `node_modules` in `/` fails

made a directory named `/wrapper/` and moved files there to resolve.

updated entrypoint to match new location.
2024-10-31 21:59:23 -04:00

21 lines
618 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 /wrapper \
&& npm install --prefix /wrapper 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/wrapper.js
CMD [ "/bin/bash", "/entrypoint.sh" ]