Docker supports multi-stage builds. Multistage builds are useful to anyone who has struggled to optimize Dockerfiles while keeping them easy to read and maintain.
The Service Factory uses docker to build, run service. In addition, you can use it as a workflow. For example, if you wants to perform unit test after build, you can add a stage for unit test into the dockerfile.
How to create dockerfile
Create a new dockerfile on Dockerfile page
- Create a new dockerfile on Dockerfile page. Click the Create button, the Create Dockerfile page will be showed.
Create a new dockerfile when you edit the service
Create a new dockerfile when edit the service. In the Menu Service, click Edit.In the Dockerfile drop down list, select New, the Create Dockerfile page will be showed.