Upgrade to Pro — share decks privately, control downloads, hide ads and more …

docker-multi-stage-build

 docker-multi-stage-build

dockerのマルチステージビルドについて登壇しました。

Lightning talk of docker and docker-multi-stage-build.

Hirokazu Maruta

July 30, 2019
Tweet

More Decks by Hirokazu Maruta

Other Decks in Technology

Transcript

  1. Λ

  2. ࣗݾ঺հ • ؙా୓࿨ʢ·ΔͨͻΖ͔ͣʣ • Twitter: @mochi_suna • giftee.co SaaSνʔϜΤϯδχΞ •

    झຯɿϐΞϊɺϘυήɺΞΠίϯ࡞੒ʢΧούʣ • ࣗಈԽେ޷͖ɻख࡞ۀ͖Β͍ɻ • github: https://github.com/mochisuna
  3. ༨ஊɿDockerΠϝʔδʹ͍ͭͯ • dokerΠϝʔδ͸ෳ਺ͷ ΠϝʔδΛϨΠϠͱͯ͠ ࣋ͭ • ࢖͏ଆ͸୯ҰͷΠϝʔδ ʹݟ͑Δ • FROM

    / ADD /COPY౳ ͸શͯΠϝʔδϨΠϠʹ ૬౰ http://docs.docker.jp/engine/userguide/storagedriver/imagesandcontainers.html
  4. Google Cloud RunʹσϓϩΠ • ίϚϯυ2ൃ gcloud beta run deploy <service_name>

    \ --image gcr.io/<project_id>/<image_name>
 --region <region> gcloud builds submit \ -- project <project_id> \
 -- tag gcr.io/<project_id>/<image_name> <dir>