Successfully reported this slideshow.
Your SlideShare is downloading. ×

Cloud Native Ninja - PT3 - Containerize DOTNET apps.pdf

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Loading in …3
×

Check these out next

1 of 9 Ad

More Related Content

Similar to Cloud Native Ninja - PT3 - Containerize DOTNET apps.pdf (20)

More from Nilesh Gule (20)

Advertisement

Recently uploaded (20)

Cloud Native Ninja - PT3 - Containerize DOTNET apps.pdf

  1. 1. Containerize DOTNET Apps Nilesh Gule @nileshgule Cloud Native Ninja
  2. 2. Dockerfile V1
  3. 3. Dockerfile V2 – Multi stage builds
  4. 4. Dockerfile V3 – Multi stage builds Alpine image
  5. 5. Dockerfile V4 – Multi stage builds Ubuntu image
  6. 6. Run Containerized App Interactive terminal mode docker run --rm ` -it ` --name producer ` -p 5000:80 ` -e ASPNETCORE_ENVIRONMENT=Development ` producer:v1 Detached mode docker run --rm ` -d ` --name producer ` -p 5000:80 ` -e ASPNETCORE_ENVIRONMENT=Development ` producer:v1 ✓ 1: container name ✓ 2: 5000 host port, 80 container port ✓ 3: environment variable ASPNETCORE_ENVIRONMENT ✓ 4: image name and tag, default tag = latest
  7. 7. Summary ✓ Base images: Provided by major tools vendors, programming languages and frameworks ✓ Dockerfile: set of instructions to package the application with all its dependencies ✓ Multi Stage build: reduce image sizes with optimized base images for build and run stages ✓ Always use the best possible base image for the app to keep the size small and reduce attack surface
  8. 8. Containerize Apps Resources https://github.com/NileshGule/cloud-native-ninja Slides https://www.slideshare.net/nileshgule/ https://speakerdeck.com/nileshgule/

×