Refactor Dockerfile to streamline application file copying and remove unnecessary dependencies; add .dockerignore to manage included files.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# Exclude everything by default
|
||||
*
|
||||
# Then explicitly include only what we need
|
||||
|
||||
# Core application files
|
||||
!musicround/
|
||||
!migrations/
|
||||
!run_migration.py
|
||||
!run.py
|
||||
!requirements.txt
|
||||
!docker-entrypoint.sh
|
||||
!LICENSE
|
||||
!favicon.ico
|
||||
|
||||
# Exclude unnecessary files within included directories
|
||||
**/__pycache__/
|
||||
**/*.pyc
|
||||
**/*.pyo
|
||||
**/*.pyd
|
||||
**/.*
|
||||
musicround/mp3/
|
||||
Reference in New Issue
Block a user