General Dockerfile improvements
Closed this issue · 0 comments
AetherUnbound commented
Current Situation
As it stands, our Dockerfile(s) are fairly typical. There are a few steps we could take to improve/optimize the image(s).
Suggested Improvement
- Use
PIPNOCACHEDIR
1 - Only mount test files when testing
- Replace
ADD
withCOPY
2 - Only perform
db init
/users create
when requested, otherwise usedb upgrade
Benefit
This will slim down the image, ensure that we're using best practices, and reduce redundant startup executions.
Alternatives
Additional context
Implementation
- 🙋 I would be interested in implementing this feature.