jack 1 سال پیش
والد
کامیت
2b25a1217c
3فایلهای تغییر یافته به همراه102 افزوده شده و 0 حذف شده
  1. 1 0
      .gitignore
  2. 23 0
      Dockerfile
  3. 78 0
      requirements.txt

+ 1 - 0
.gitignore

@@ -24,6 +24,7 @@ var/
 *.egg-info/
 .installed.cfg
 *.egg
+.idea/*
 
 # PyInstaller
 #  Usually these files are written by a python script from a template

+ 23 - 0
Dockerfile

@@ -0,0 +1,23 @@
+# 使用官方的 Python 3.10 镜像,基于 Alpine Linux
+FROM python:3.10-alpine
+
+# 设置工作目录
+WORKDIR /app
+
+# 将 requirements.txt 复制到工作目录
+COPY requirements.txt /app/requirements.txt
+
+# 运行 pip 命令安装依赖,使用 --no-cache-dir 选项来避免缓存问题
+RUN pip install --no-cache-dir -r requirements.txt
+
+# 将当前目录下的所有文件复制到工作目录
+COPY . /app
+
+# 设置环境变量,例如 PYTHONDONTWRITEBYTECODE 可以防止 Python 写入 __pycache__ 文件
+ENV PYTHONDONTWRITEBYTECODE=1
+
+# 设置时区为亚洲上海
+ENV TZ=Asia/Shanghai
+
+# 程序入口文件是 main.py
+CMD ["python", "./main.py"]

+ 78 - 0
requirements.txt

@@ -0,0 +1,78 @@
+aiohttp==3.9.1
+aiosignal==1.3.1
+annotated-types==0.6.0
+anyio==4.1.0
+appdirs==1.4.4
+APScheduler==3.10.4
+async-timeout==4.0.3
+attrs==23.1.0
+beautifulsoup4==4.12.2
+blinker==1.7.0
+Brotli==1.1.0
+bs4==0.0.1
+certifi==2023.11.17
+cffi==1.16.0
+charset-normalizer==3.3.2
+click==8.1.7
+colorama==0.4.6
+cryptography==41.0.7
+dnspython==2.4.2
+exceptiongroup==1.2.0
+fastapi==0.108.0
+frozenlist==1.4.0
+greenlet==3.0.3
+h11==0.14.0
+h2==4.1.0
+hpack==4.0.0
+httpcore==1.0.2
+httpx==0.25.2
+hyperframe==6.0.1
+idna==3.6
+importlib-metadata==7.0.0
+jieba==0.42.1
+kaitaistruct==0.10
+multidict==6.0.4
+numpy==1.26.4
+outcome==1.3.0.post0
+ping3==4.0.4
+pyasn1==0.5.1
+pycparser==2.21
+pycryptodome==3.19.0
+pydantic==2.5.3
+pydantic_core==2.14.6
+pydivert==2.1.0
+pyee==11.0.1
+PyExecJS==1.5.1
+pygpt4all==1.1.0
+pygptj==2.0.3
+pyllamacpp==2.4.2
+pymongo==4.6.1
+pyOpenSSL==23.3.0
+pyparsing==3.1.1
+PyRSS2Gen==1.1
+PySocks==1.7.1
+pytz==2024.1
+redis==5.0.1
+requests==2.31.0
+rsa==4.9
+schedule==1.2.1
+selenium==4.16.0
+selenium-wire==5.1.0
+six==1.16.0
+sniffio==1.3.0
+sortedcontainers==2.4.0
+soupsieve==2.5
+starlette==0.32.0.post1
+tqdm==4.66.1
+trio==0.23.1
+trio-websocket==0.11.1
+typing_extensions==4.9.0
+tzlocal==5.2
+urllib3==1.26.18
+uvicorn==0.25.0
+websockets==10.4
+wsproto==1.2.0
+xmltodict==0.13.0
+yarl==1.9.4
+zipp==3.17.0
+zstandard==0.22.0