The problem: the current dockerfile pulls in all the garbage from the repository and reads environment variables very stupidly.
Why it's so important here and now: Because this thing takes a long time to start every time I need to test a new little feature. It slows me down and does irreparable damage to my brain more than moonshine.
Improvement plan:
[x] - transfer of all variables to the container during startup with special keys - no hardcode.
[x] - creating a separate user for further launching the application in the container (this is a security issue).
[x] - breaking down the actions in the docker file into small steps — this will ensure better caching of the docker layers.
[x] - refactor deploy_prod.sh.
[ ] - ~refactor Dockerfile.investing_pipeline and deploy_investor.sh.~ Don't do it!
The problem: the current dockerfile pulls in all the garbage from the repository and reads environment variables very stupidly.
Why it's so important here and now: Because this thing takes a long time to start every time I need to test a new little feature. It slows me down and does irreparable damage to my brain more than moonshine.
Improvement plan:
deploy_prod.sh
.Dockerfile.investing_pipeline
anddeploy_investor.sh
.~ Don't do it!