t / Dockerfile
asfag654's picture
Update Dockerfile
037c330 verified
FROM node:latest
# 设置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone
# 设置 APT 为非交互模式
ENV DEBIAN_FRONTEND=noninteractive
# 更新 APT 索引,并安装基础工具
RUN apt-get update && apt-get install -y --no-install-recommends \
wget curl iputils-ping gnupg ca-certificates && \
rm -rf /var/lib/apt/lists/*
# 添加 Google Chrome 签名密钥(使用 gpg 代替 apt-key)
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
# 添加 Google Chrome APT 源
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
# 更新 APT 索引并安装所需软件
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 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