mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-01 14:38:59 +00:00
21 lines
598 B
Docker
21 lines
598 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" ] |