准备部署
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# 排除无需进入镜像的文件,减小体积、避免泄密
|
||||
__pycache__/
|
||||
*.pyc
|
||||
*.pyo
|
||||
*.pyd
|
||||
.venv/
|
||||
venv/
|
||||
env/
|
||||
.Python
|
||||
|
||||
# 环境变量(含密钥,绝不能打进镜像)
|
||||
.env
|
||||
.env.*
|
||||
|
||||
# 运行时数据
|
||||
uploads/
|
||||
dist/
|
||||
build/
|
||||
*.egg-info/
|
||||
|
||||
# 测试与缓存
|
||||
.pytest_cache/
|
||||
.mypy_cache/
|
||||
.ruff_cache/
|
||||
.coverage
|
||||
htmlcov/
|
||||
|
||||
# 版本控制与文档(镜像不需要)
|
||||
.git/
|
||||
.gitignore
|
||||
|
||||
# Dockerfile 本身
|
||||
Dockerfile
|
||||
Dockerfile.prod
|
||||
Reference in New Issue
Block a user