fix: qq data path

This commit is contained in:
initialencounter 2024-08-23 03:08:17 +08:00
parent 31ea80c5be
commit 4945c6b564
No known key found for this signature in database
GPG Key ID: E29907C04179B4C6
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,7 @@
FROM mlikiowa/napcat-docker:base
RUN useradd --no-log-init -d /app napcat
WORKDIR /app
COPY NapCat.Shell.zip entrypoint.sh /app/
@ -9,7 +11,6 @@ RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && \
curl -o linuxqq.deb https://dldir1.qq.com/qqfile/qq/QQNT/Linux/QQ_3.2.12_240819_${arch}_01.deb && \
dpkg -i --force-depends linuxqq.deb && rm linuxqq.deb && \
chmod +x entrypoint.sh && \
useradd -m napcat && \
echo "(async () => {await import('file:///app/napcat/napcat.mjs');})();" > /opt/QQ/resources/app/app_launcher/index.js
VOLUME /app/napcat/config

View File

@ -115,9 +115,9 @@ services:
# 固化路径,方便下次直接快速登录
QQ 文档路径:~/.config/QQ
QQ 持久化数据路径:/app/.config/QQ
NapCat 配置文件路径: /usr/src/app/napcat/config
NapCat 配置文件路径: /app/napcat/config
注意:如果是重新创建的容器,需要固定 Mac 地址