- Dockerfile copia el proyecto Django, no la raiz del repo, para que manage.py y wsgi.py queden donde gunicorn los espera - collectstatic en tiempo de construccion y CMD en la imagen - .dockerignore: evita que .env, .git y artefactos locales entren en la imagen - requirements.txt sin BOM
27 lines
381 B
Plaintext
27 lines
381 B
Plaintext
# Secrets — these must never end up in an image layer.
|
|
.env
|
|
db.env
|
|
*.env
|
|
!.env.example
|
|
|
|
# Version control and IDE noise.
|
|
.git
|
|
.gitignore
|
|
.vscode
|
|
.idea
|
|
|
|
# Local artifacts that would otherwise be copied in by COPY.
|
|
__pycache__/
|
|
*.py[cod]
|
|
*.bak
|
|
venv/
|
|
.venv/
|
|
db.sqlite3
|
|
staticfiles/
|
|
.pytest_cache/
|
|
.coverage
|
|
htmlcov/
|
|
|
|
# Documentation and planning, not needed at runtime.
|
|
*.md
|
|
LICENSE |