t / Dockerfile
asfag654's picture
Update Dockerfile
75dc7d3 verified
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 -qq wget curl&& \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
apt-get update && \
apt-get install -y -qq google-chrome-stable bash tzdata git redis-server gnupg ca-certificates 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
EXPOSE 2536
WORKDIR /zmal
RUN git config --global clone.quiet true
RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai
WORKDIR /zmal/Yunzai
RUN npm i -g pnpm
RUN git clone --depth 1 --single-branch "https://gitee.com/TimeRainStarSky/Yunzai-Telegram-Plugin" "plugins/Telegram-Plugin"&&git clone --depth 1 --single-branch "https://gitee.com/TimeRainStarSky/Yunzai-ICQQ-Plugin" "plugins/ICQQ-Plugin" && git clone --depth 1 https://github.com/TimeRainStarSky/TRSS-Plugin.git "plugins/TRSS-Plugin"&&git clone https://github.com/TimeRainStarSky/Yunzai-QQBot-Plugin.git plugins/QQBot
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/HDTianRu/bililivePush-plugin ./plugins/bililivePush-plugin \
&& 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 curl -sSLk https://gitee.com/haanxuan/QSign/raw/main/X -o /tmp/QSign.sh && bash /tmp/QSign.sh
RUN curl https://api64.ipify.org
RUN chmod -R 777 /zmal
CMD node app