Optimize Dockerfile: combine RUN commands, clear caches, add .dockerignore

- Combine apt-get update and install into single RUN with cache clearing
- Remove APT lists after installation
- Add --no-cache-dir to pip install
- Add --prefer-offline --no-audit to npm install
- Create .dockerignore to exclude unnecessary files from build context
- Update docker-publish.yml workflow to tag images with release names
- Ensure buildx caching is used (type=gha)
This commit is contained in:
Bryan Cross 2026-03-30 15:19:52 -05:00
parent ea342f2382
commit 8210e7aba6
3 changed files with 98 additions and 15 deletions

View file

@ -3,11 +3,73 @@
.gitignore
.gitmodules
# Dependencies
node_modules
# CI/CD
# GitHub
.github
# Environment files
.env
# Python
__pycache__
*.py[cod]
*$py.class
*.so
.Python
.pytest_cache
.mypy_cache
.ruff_cache
*.egg-info
.eggs
# Virtual environments
.venv
venv/
ENV/
env/
# IDE
.vscode
.idea
*.swp
*.swo
*~
# Environment files (secrets)
.env
.env.*
!.env.example
# Logs and data
logs/
data/
tmp/
temp_vision_images/
testlogs
wandb/
# Test files
tests/
*.test.py
*.spec.py
# Documentation
*.md
!README.md
# CI/CD
*.yml
!package.json
# Development files
examples/
result
.direnv/
# Release scripts
.release_notes.md
mini-swe-agent/
# Nix
.direnv/
result
# Skills hub
skills/.hub/
ignored/