sponge/build
2023-03-25 15:18:36 +08:00
..
Dockerfile adjustment code 2022-11-21 22:12:49 +08:00
Dockerfile_build build rpc test container image 2023-03-25 15:18:36 +08:00
Dockerfile_test build rpc test container image 2023-03-25 15:18:36 +08:00
README.md adjustment code 2022-11-21 22:12:49 +08:00

  • Dockerfile: Build the image by directly copying the compiled binaries.
    • Pros: fast build speed
    • Disadvantage: image size is twice as big as two-stage build.
  • Dockerfile_build: two-stage build of the image.
    • Pros: minimal image size
    • Disadvantages: slower build speed, each build produces a larger intermediate image, which needs to be cleaned up regularly by executing the command docker rmi $(docker images | grep "<none>" | awk '{print $3}').