
Installing `node_modules` in `/` fails made a directory named `/wrapper/` and moved files there to resolve. updated entrypoint to match new location.
21 lines
618 B
Docker
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" ] |