DockerCon SF19 での発表に基づく内容•Dockerfile Best Practiceshttps://www.slideshare.net/Docker/dcsf19-dockerfile-best-practices2• 動画もご覧くださいhttps://www.docker.com/dockercon/2019-videos?watch=dockerfile-best-practicesオリジナルの発表は Tibor Vass 氏( @tiborvass) および Sebastian van Stijin 氏(@thajeztha)による、 DockerCon 毎回恒例人気セッション"Dockerfile Best Practices" であり、両者に感謝します。I thank you both for your excellent presentation of DockerCon. I also appreciate your permission to translate the content.Please refer to this slides. And, this presentation videowill also be helpful.
一貫した環境を、ソースから構築する• Dockerfile を設計図(青写真)にしよう:•ビルド時するための構築環境を Dockerfile に記述• 正しいバージョンのビルド・ツールをインストール• 環境ごとの違いを発生させない• システム依存はあるかもしれない• "source of truth"(本当のソース)とは、ソースコードである。ビルド成果物ではない。33Image by John Dortmunder from Pixabayblue print開発環境、テスト環境、実行環境で共通する Dockerfile を目指す