Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
252 views
in Technique[技术] by (71.8m points)

python - Multi-stage Docker for development, testing, staging and production


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I think the first approach is not recommended for Production. You should not keep on increasing the attack surface by simply adding on to the base -> test->stage->Production. You rightly mentioned, the unnecessary software from test stage should be stripped down in Production.

I believe what you did in test stage is verify you application using tools. Now if you essentially are using the same app in production build with all your dependencies bundled along with, the app should work. Testing you final production app should be done after the build and before deployment now. Which I think is out of scope of Production container build.

I hope this makes sense..?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...