-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] merge prod and dev Dockerfile #1194
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1194 +/- ##
==========================================
+ Coverage 71.19% 73.99% +2.79%
==========================================
Files 84 81 -3
Lines 3451 3057 -394
==========================================
- Hits 2457 2262 -195
+ Misses 994 795 -199 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@SivanYeh would you please try to deploy this branch on staging and check if everything works fine 🙏🏽
Count on me! I will do this tomorrow and tell you guys how it goes |
It works well! If no further issues are found, and staging remains stable throughout the weekend, I will merge to main branch and deploy to prod. |
@SivanYeh I believe we can merge this, right? |
Yes! Sorry for the delay. I was quite busy yesterday |
Types of changes
Description
Merge both dev and prod Dockerfile into one and divide it into multi stages.
Steps to Test This Pull Request
Test dev stage
Test prod stage
docker-compose-prod-demo.yml
fileMore Information
ENV PATH /usr/local/bin:$PATH
due to duplicate entries/usr/local/bin
ENV PATH /home/docker/.local/bin:$PATH
to centralise where pip install packages and to align the PATH between production environment and development environment.chown -R docker:nogroup "$BASE_DIR" "$APP_DIR"
and useCOPY --chown
instead to avoid unnecessary image size increasing. references: https://garbers.co.za/2017/11/15/reduce-docker-image-size-chmod-chown/ , https://stackoverflow.com/questions/30085621/why-does-chown-increase-size-of-docker-image