generated from playground/template-python
Flask 배포용 Dockerfile·.gitignore 추가
- Dockerfile: python:3.12-slim 기반. requirements.txt를 먼저 설치해 레이어 캐시를 활용하고, 비루트(appuser)로 실행. 배포 규격대로 0.0.0.0:8080 포트 노출(EXPOSE 8080). sample/Dockerfile 구조를 파이썬 플라스크용으로 변환. - .gitignore: __pycache__·*.pyc, 가상환경(.venv 등), .env 등 파이썬/환경변수 산출물 제외.
This commit is contained in:
26
.gitignore
vendored
Normal file
26
.gitignore
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
# Python
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*.egg-info/
|
||||
.eggs/
|
||||
build/
|
||||
dist/
|
||||
|
||||
# 가상환경
|
||||
.venv/
|
||||
venv/
|
||||
env/
|
||||
|
||||
# 환경변수(자격증명 포함) — 절대 커밋 금지
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
|
||||
# 테스트/캐시
|
||||
.pytest_cache/
|
||||
.mypy_cache/
|
||||
.coverage
|
||||
htmlcov/
|
||||
|
||||
# OS / 에디터
|
||||
.DS_Store
|
||||
Reference in New Issue
Block a user