Improve docker setup

- add .dockerignore to reduce build context
- add entrypoint.sh to initialize environment before user switch
- fix Celery setting deprecation warnings
- downgrade importlib-metadata for Celery compatibility
- set TZ environment variable for consistent Celery timestamps
This commit is contained in:
Jan Dittberner 2023-02-20 15:59:08 +01:00
parent 2575afb9f9
commit 88253ee37d
7 changed files with 43 additions and 21 deletions

17
.dockerignore Normal file
View file

@ -0,0 +1,17 @@
**/*.pyc
**/.*.swp
**/.coverage
**/__pycache__
.dockerignore
.env
.envrc
.git
.gitignore
.idea
.vagrant
Dockerfile
Vagrantfile
change-vmdebootstrap-default-dhcp.sh
coverage-report
docs
salt