一点小问题.png

This commit is contained in:
stapxs 2024-04-18 12:16:57 +08:00
parent 0aaa08d3f4
commit b9a1dd59a2
No known key found for this signature in database
GPG Key ID: E2445576B8471A27
2 changed files with 7 additions and 7 deletions

View File

@ -7,13 +7,13 @@ COPY config.txt entrypoint.sh ./
# 安装Linux QQ
RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && \
curl -o /root/linuxqq.deb https://dldir1.qq.com/qqfile/qq/QQNT/Linux/QQ_3.2.7_240410_${arch}_01.deb && \
dpkg -i --force-depends /root/linuxqq.deb && rm /root/linuxqq.deb
curl -o linuxqq.deb https://dldir1.qq.com/qqfile/qq/QQNT/Linux/QQ_3.2.7_240410_${arch}_01.deb && \
dpkg -i --force-depends linuxqq.deb && rm linuxqq.deb
# 安装 napcat
RUN unzip NapCat.linux.zip && \
RUN unzip NapCat.linux.zip -d napcat && \
rm NapCat.linux.zip && \
chmod +x napcat.sh && \
chmod +x napcat/napcat.sh && \
chmod +x entrypoint.sh
# 配置 supervisord

View File

@ -1,8 +1,8 @@
#!/bin/bash
sed -i "s|COMMAND|bash napcat.sh -q $ACCOUNT|" /etc/supervisord.conf
sed -i "s|COMMAND|bash napcat/napcat.sh -q $ACCOUNT|" /etc/supervisord.conf
CONFIG_PATH=config/onebot11_$ACCOUNT.json
CONFIG_PATH=napcat/config/onebot11_$ACCOUNT.json
# 容器首次启动时执行
if [ ! -f "$CONFIG_PATH" ]; then
cp -f config.txt $CONFIG_PATH
@ -94,5 +94,5 @@ if [ ! -f "$CONFIG_PATH" ]; then
fi
export FFMPEG_PATH=/usr/bin/ffmpeg
bash napcat.sh -q $ACCOUNT &
bash napcat/napcat.sh -q $ACCOUNT &
exec supervisord