[Testing WG] Update Dockerfile of each projects to reduce image size
I have submitted PR (named “Update Dockerfile to reduce the image size”) to each project to update the Dockerfiles which could significantly reduce the Docker image size.
Following tables are list the details of every project. It could totally reduce more than 1G Size.
Please help to review the PRs carefully and merge it if there is no problem.
If you have any further questions, please feel free to contact me.
What I have done to do with the Dockerfile is just swapping the sequence of copy files and change files:
1. Change the mode and owner of the related files and directories created in Docker container first
2. Change the mode and owner of the files needed to be copied into container
3. Copy related files into container
With the new sequence, it avoid to change the big files copied into container in another docker image layer which could avoid to recount the big files for several times.