Initial commit

This commit is contained in:
2026-04-19 23:51:17 +08:00
parent 222cb1cca5
commit f2b7d7e2aa
5 changed files with 170 additions and 0 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM python:3.11-slim
WORKDIR /app
# 1. 安装系统编译依赖qqwry-py3 需要编译)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libffi-dev \
libssl-dev \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
# 2. 复制并安装 Python 依赖
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 3. 复制源码 & 纯真库
COPY qqwry.dat app.py ./
# 4. 默认端口 5000可 docker run -e PORT=8080 覆盖
ENV PORT=5000
EXPOSE ${PORT}
# 5. 直接 python 启动
CMD ["python", "app.py"]