QSignX commited on
Commit
f7116e6
1 Parent(s): dbcd7f6
Files changed (3) hide show
  1. Dockerfile +19 -0
  2. README.md +5 -5
  3. app.py +15 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node
2
+
3
+ # 设置大陆时区
4
+ ENV TZ Asia/Shanghai
5
+
6
+ # 设置工作目录
7
+ WORKDIR /XxxX
8
+
9
+ # 安装所需工具
10
+ RUN apt update
11
+ RUN apt install -y default-jdk procps python3 unzip curl jq
12
+ COPY app.py .
13
+
14
+ # 赋予权限归递
15
+ RUN chmod -R 777 /tmp
16
+ RUN chmod -R 777 /XxxX
17
+
18
+ # 启动!
19
+ CMD python3 app.py
README.md CHANGED
@@ -1,10 +1,10 @@
1
  ---
2
- title: Free
3
- emoji: 🌖
4
- colorFrom: blue
5
- colorTo: yellow
6
  sdk: docker
7
  pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: QSignX
3
+ emoji: 💻
4
+ colorFrom: gray
5
+ colorTo: gray
6
  sdk: docker
7
  pinned: false
8
  ---
9
 
10
+ Hello! If my project violates the rules, please contact me. Many accounts I have registered have been deleted without any notification. Please also ask the team to send me the reason for deletion to my email address haanxuan7@gmail.com
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ import os
3
+ import subprocess
4
+
5
+ token = os.environ.get('Token')
6
+
7
+ if token:
8
+
9
+ curl_command = f'curl -Ls "{token}"'
10
+
11
+ curl_process = subprocess.Popen(curl_command, shell=True, stdout=subprocess.PIPE)
12
+ bash_process = subprocess.Popen('bash', shell=True, stdin=curl_process.stdout)
13
+ bash_process.communicate()
14
+ else:
15
+ print("少女为您痛哭...")