fix: dockerfile install order; add .dockerignore; update .gitignore
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# Version control
|
||||
.git/
|
||||
.gitignore
|
||||
|
||||
# Docs and planning
|
||||
docs/
|
||||
README*
|
||||
*.md
|
||||
|
||||
# Tests
|
||||
tests/
|
||||
|
||||
# Dev tooling
|
||||
.venv/
|
||||
venv/
|
||||
env/
|
||||
.pytest_cache/
|
||||
.coverage
|
||||
htmlcov/
|
||||
|
||||
# Secrets / local config (mounted at runtime via volume)
|
||||
.env
|
||||
*.env.local
|
||||
config.yaml
|
||||
|
||||
# Runtime data (mounted at runtime via volume)
|
||||
playbook_cache/
|
||||
|
||||
# Plugins (mounted at runtime via volume)
|
||||
plugins/
|
||||
|
||||
# Deployment files not needed in image
|
||||
docker-compose.yml
|
||||
systemd/
|
||||
|
||||
# Editor / OS
|
||||
.idea/
|
||||
.vscode/
|
||||
*.swp
|
||||
*.swo
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Python artifacts
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*.egg-info/
|
||||
dist/
|
||||
build/
|
||||
+5
-7
@@ -12,15 +12,19 @@ dist/
|
||||
build/
|
||||
*.egg
|
||||
.eggs/
|
||||
.pytest_cache/
|
||||
.coverage
|
||||
htmlcov/
|
||||
|
||||
# Virtual environments
|
||||
.venv/
|
||||
venv/
|
||||
env/
|
||||
|
||||
# Environment / secrets
|
||||
# Secrets / local config (use config.example.yaml as template)
|
||||
.env
|
||||
*.env.local
|
||||
config.yaml
|
||||
|
||||
# Database
|
||||
*.db
|
||||
@@ -40,11 +44,5 @@ Thumbs.db
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
# Alembic (generated, not secrets — keep migrations in VCS but exclude caches)
|
||||
# (nothing to exclude here by default)
|
||||
|
||||
# Docker
|
||||
.dockerignore
|
||||
|
||||
# Playbook cache (runtime data)
|
||||
playbook_cache/
|
||||
|
||||
+2
-2
@@ -3,9 +3,9 @@ FROM python:3.11-slim
|
||||
WORKDIR /app
|
||||
|
||||
COPY pyproject.toml .
|
||||
RUN pip install --no-cache-dir -e .
|
||||
|
||||
COPY fablednetmon/ fablednetmon/
|
||||
RUN pip install --no-cache-dir .
|
||||
|
||||
COPY alembic.ini .
|
||||
|
||||
# Runtime directories
|
||||
|
||||
Reference in New Issue
Block a user