📦 优化忽略文件和镜像构建

This commit is contained in:
Cp0204 2024-11-14 03:49:40 +08:00
parent a5369e0138
commit ad4026955f
4 changed files with 11 additions and 2 deletions

4
.dockerignore Normal file
View File

@ -0,0 +1,4 @@
.git
.github
__pycache__
/img

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
quark_config_debug.json quark_config_debug.json
__pycache__ __pycache__
/config /config
.vscode

View File

@ -8,7 +8,7 @@ WORKDIR /app
COPY . /app COPY . /app
# 安装依赖 # 安装依赖
RUN pip install --no-cache-dir flask apscheduler requests treelib RUN pip install --no-cache-dir -r requirements.txt
# 时区 # 时区
ENV TZ="Asia/Shanghai" ENV TZ="Asia/Shanghai"

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
flask
apscheduler
requests
treelib