|
|
FROM node:latest |
|
|
|
|
|
|
|
|
ENV TZ=Asia/Shanghai |
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ |
|
|
echo $TZ > /etc/timezone |
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive |
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \ |
|
|
wget curl iputils-ping gnupg ca-certificates && \ |
|
|
rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
|
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | \ |
|
|
gpg --dearmor | tee /usr/share/keyrings/google-chrome.gpg > /dev/null |
|
|
|
|
|
|
|
|
RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" | \ |
|
|
tee /etc/apt/sources.list.d/google-chrome.list |
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \ |
|
|
google-chrome-stable bash tzdata git redis-server \ |
|
|
ttf-wqy-zenhei ttf-wqy-microhei fonts-arphic-ukai fonts-arphic-uming \ |
|
|
p7zip-full ffmpeg libavcodec-extra libopencore-amrnb-dev libopencore-amrwb-dev \ |
|
|
libvo-amrwbenc-dev libx264-dev libx265-dev libvpx-dev libmp3lame-dev libopus-dev && \ |
|
|
rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
EXPOSE 2536 |
|
|
WORKDIR /zmal |
|
|
|
|
|
RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai |
|
|
WORKDIR /zmal/Yunzai |
|
|
RUN npm i -g pnpm |
|
|
|
|
|
|
|
|
RUN git clone --depth=1 https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin \ |
|
|
&& git clone -b v2 --depth=1 https://github.com/yeyang52/yenai-plugin.git ./plugins/yenai-plugin \ |
|
|
&& git clone --depth=1 https://github.com/XasYer/steam-plugin.git ./plugins/steam-plugin \ |
|
|
&& git clone --depth=1 https://github.com/AIGC-Yunzai/siliconflow-plugin.git ./plugins/siliconflow-plugin \ |
|
|
&& git clone --depth=1 https://github.com/erzaozi/vits-plugin.git ./plugins/vits-plugin \ |
|
|
&& git clone --depth=1 https://github.com/liangshi233/liangshi-calc.git ./plugins/liangshi-calc \ |
|
|
&& git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin \ |
|
|
&& git clone --depth=1 https://github.com/erzaozi/neko-status-plugin.git ./plugins/neko-status-plugin \ |
|
|
&& git clone --depth=1 https://github.com/TimeRainStarSky/Yunzai-genshin.git ./plugins/genshin \ |
|
|
&& git clone --depth=1 https://github.com/xfdown/xiaofei-plugin.git ./plugins/xiaofei-plugin \ |
|
|
&& git clone --depth=1 https://github.com/ClarityJS/meme-plugin ./plugins/meme-plugin \ |
|
|
&& git clone --depth=1 https://github.com/ikechan8370/chatgpt-plugin.git ./plugins/chatgpt-plugin \ |
|
|
&& git clone https://github.com/QianYeXingChen/ap-plugin-qyxc.git ./plugins/ap-plugin \ |
|
|
&& pnpm i --silent |
|
|
|
|
|
COPY Yunzai.7z Yunzai.7z |
|
|
RUN --mount=type=secret,id=zzz,mode=0444,required=true \ |
|
|
7z x -p"$(cat /run/secrets/zzz)" Yunzai.7z -o/zmal/Yunzai/ -y |
|
|
RUN git config --global safe.directory '*' |
|
|
|
|
|
|
|
|
|
|
|
RUN chmod -R 777 /zmal |
|
|
CMD node app |