Create .dockerignore

This should ignore anything that is not needed for the docker image and clear space by not copying the .git/ folder
This commit is contained in:
Drew Thomasson
2025-03-04 15:38:51 -05:00
committed by GitHub
parent ea584e5267
commit c1992a59a7

25
.dockerignore Normal file
View File

@@ -0,0 +1,25 @@
# Ignore Git repository files
.git/
# Ignore Docker-related files (not needed in the image)
# Dockerfile
# .dockerignore
# Ignore cache and temporary files
.cache
tmp/*
# Ignore all files and subdirectories in models/ EXCEPT version.txt
models/*
!models/version.txt
# Ignore virtual environments (if using venv)
python_env/
# Ignore compiled Python bytecode
**/__pycache__/
# Ignore specific directories inside the `audiobooks` project
audiobooks/cli/*
audiobooks/gui/gradio/*
audiobooks/gui/host/*