
上QQ阅读APP看书,第一时间看更新
Configuring the release stage
With the test stage in place, we now have an image that includes all application dependencies packaged in a format that can be installed without compilation or development dependencies, along with our application source code in a state that we can easily verify passes all tests.
The next stage that we need to configure is the release stage, which copies the application source code and various application dependencies built during the test stage to a new production-ready release image. Because the application dependencies are now available in a precompiled format, the release image does not require development dependencies or source code compilation tools, allowing us to create a smaller, leaner release image with a reduced attack surface.