Update Dockerfile
Browse files- Dockerfile +41 -41
Dockerfile
CHANGED
@@ -1,42 +1,42 @@
|
|
1 |
-
FROM node:latest
|
2 |
-
ENV TZ=Asia/Shanghai
|
3 |
-
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
|
4 |
-
echo $TZ > /etc/timezone
|
5 |
-
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
-
RUN apt-get update && \
|
7 |
-
apt-get install -y -qq wget curl&& \
|
8 |
-
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
|
9 |
-
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
|
10 |
-
apt-get update && \
|
11 |
-
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
|
12 |
-
EXPOSE 2536
|
13 |
-
WORKDIR /zmal
|
14 |
-
RUN git config --global clone.quiet true
|
15 |
-
RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai
|
16 |
-
WORKDIR /zmal/Yunzai
|
17 |
-
RUN npm i -g pnpm
|
18 |
-
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
|
19 |
-
|
20 |
-
RUN git clone --depth=1 https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin \
|
21 |
-
&& git clone -b v2 --depth=1 https://github.com/yeyang52/yenai-plugin.git ./plugins/yenai-plugin \
|
22 |
-
&& git clone --depth=1 https://github.com/XasYer/steam-plugin.git ./plugins/steam-plugin \
|
23 |
-
&& git clone --depth=1 https://github.com/AIGC-Yunzai/siliconflow-plugin.git ./plugins/siliconflow-plugin \
|
24 |
-
&& git clone --depth=1 https://github.com/erzaozi/vits-plugin.git ./plugins/vits-plugin \
|
25 |
-
&& git clone --depth=1 https://github.com/liangshi233/liangshi-calc.git ./plugins/liangshi-calc \
|
26 |
-
&& git clone --depth=1 https://github.com/HDTianRu/bililivePush-plugin ./plugins/bililivePush-plugin \
|
27 |
-
&& git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin \
|
28 |
-
&& git clone --depth=1 https://github.com/erzaozi/neko-status-plugin.git ./plugins/neko-status-plugin \
|
29 |
-
&& git clone --depth=1 https://github.com/TimeRainStarSky/Yunzai-genshin.git ./plugins/genshin \
|
30 |
-
&& git clone --depth=1 https://github.com/xfdown/xiaofei-plugin.git ./plugins/xiaofei-plugin \
|
31 |
-
&& git clone --depth=1 https://github.com/ClarityJS/meme-plugin ./plugins/meme-plugin \
|
32 |
-
&& git clone --depth=1 https://github.com/ikechan8370/chatgpt-plugin.git ./plugins/chatgpt-plugin \
|
33 |
-
&& pnpm i --silent
|
34 |
-
|
35 |
-
COPY Yunzai.7z Yunzai.7z
|
36 |
-
RUN --mount=type=secret,id=zzz,mode=0444,required=true \
|
37 |
-
7z x -p"$(cat /run/secrets/zzz)" Yunzai.7z -o/zmal/Yunzai/ -y
|
38 |
-
RUN git config --global safe.directory '*'
|
39 |
-
RUN curl -sSLk https://gitee.com/haanxuan/QSign/raw/main/X -o /tmp/QSign.sh && bash /tmp/QSign.sh
|
40 |
-
|
41 |
-
RUN chmod -R 777 /zmal
|
42 |
CMD node app
|
|
|
1 |
+
FROM node:latest
|
2 |
+
ENV TZ=Asia/Shanghai
|
3 |
+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
|
4 |
+
echo $TZ > /etc/timezone
|
5 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
+
RUN apt-get update && \
|
7 |
+
apt-get install -y -qq wget curl&& \
|
8 |
+
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
|
9 |
+
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
|
10 |
+
apt-get update && \
|
11 |
+
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
|
12 |
+
EXPOSE 2536
|
13 |
+
WORKDIR /zmal
|
14 |
+
RUN git config --global clone.quiet true
|
15 |
+
RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai
|
16 |
+
WORKDIR /zmal/Yunzai
|
17 |
+
RUN npm i -g pnpm
|
18 |
+
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
|
19 |
+
|
20 |
+
RUN git clone --depth=1 https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin \
|
21 |
+
&& git clone -b v2 --depth=1 https://github.com/yeyang52/yenai-plugin.git ./plugins/yenai-plugin \
|
22 |
+
&& git clone --depth=1 https://github.com/XasYer/steam-plugin.git ./plugins/steam-plugin \
|
23 |
+
&& git clone --depth=1 https://github.com/AIGC-Yunzai/siliconflow-plugin.git ./plugins/siliconflow-plugin \
|
24 |
+
&& git clone --depth=1 https://github.com/erzaozi/vits-plugin.git ./plugins/vits-plugin \
|
25 |
+
&& git clone --depth=1 https://github.com/liangshi233/liangshi-calc.git ./plugins/liangshi-calc \
|
26 |
+
&& git clone --depth=1 https://github.com/HDTianRu/bililivePush-plugin ./plugins/bililivePush-plugin \
|
27 |
+
&& git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin \
|
28 |
+
&& git clone --depth=1 https://github.com/erzaozi/neko-status-plugin.git ./plugins/neko-status-plugin \
|
29 |
+
&& git clone --depth=1 https://github.com/TimeRainStarSky/Yunzai-genshin.git ./plugins/genshin \
|
30 |
+
&& git clone --depth=1 https://github.com/xfdown/xiaofei-plugin.git ./plugins/xiaofei-plugin \
|
31 |
+
&& git clone --depth=1 https://github.com/ClarityJS/meme-plugin ./plugins/meme-plugin \
|
32 |
+
&& git clone --depth=1 https://github.com/ikechan8370/chatgpt-plugin.git ./plugins/chatgpt-plugin \
|
33 |
+
&& pnpm i --silent
|
34 |
+
|
35 |
+
COPY Yunzai.7z Yunzai.7z
|
36 |
+
RUN --mount=type=secret,id=zzz,mode=0444,required=true \
|
37 |
+
7z x -p"$(cat /run/secrets/zzz)" Yunzai.7z -o/zmal/Yunzai/ -y
|
38 |
+
RUN git config --global safe.directory '*'
|
39 |
+
RUN curl -sSLk https://gitee.com/haanxuan/QSign/raw/main/X -o /tmp/QSign.sh && bash /tmp/QSign.sh
|
40 |
+
|
41 |
+
RUN chmod -R 777 /zmal
|
42 |
CMD node app
|