chb2024 commited on
Commit
b2a808b
·
verified ·
1 Parent(s): d2d6467

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -0
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:22
2
+
3
+ RUN apt update && apt install curl jq xvfb git wget zip unzip libgtk-3-0 libnotify4 libxss1 libxtst6 xdg-utils libatspi2.0-0 libsecret-1-0 dbus libasound2 libnss3 -y
4
+
5
+ WORKDIR /RUN
6
+
7
+ COPY . /RUN
8
+
9
+ RUN wget https://dldir1.qq.com/qqfile/qq/QQNT/Linux/QQ_3.2.12_240819_amd64_01.deb -O QQ.deb && \
10
+ dpkg -i QQ.deb
11
+
12
+ RUN wget https://github.com/NapNeko/NapCatQQ/releases/download/v2.1.0/NapCat.Shell.zip && \
13
+ mkdir ./tmp/ && \
14
+ unzip -q -o -d ./tmp NapCat.Shell.zip && \
15
+ mkdir -p /opt/QQ/resources/app/app_launcher/napcat && \
16
+ cp -r -f ./tmp/* /opt/QQ/resources/app/app_launcher/napcat/ && \
17
+ chmod -R 777 /opt/QQ/resources/app/app_launcher/napcat/
18
+
19
+ RUN rm -rf /opt/QQ/resources/app/app_launcher/index.js && \
20
+ mv index.js /opt/QQ/resources/app/app_launcher/
21
+
22
+ # 下载 JSON 配置文件
23
+ RUN wget -O /opt/QQ/resources/app/app_launcher/napcat/config/onebot11_2660750139.json https://raw.githubusercontent.com/T060925ZX/TRSS-Config/refs/heads/main/onebot11_2660750139.json
24
+
25
+ RUN chmod -R 777 /run/*
26
+
27
+ CMD xvfb-run qq --no-sandbox
28
+
29
+ EXPOSE 6099