Dockerfile
docs
Dockerfileのベストプラクティス
Dockerfile: FROM
Dockerfile: WORKDIR
container上のworking directoryの指定
Dockerfile: COPY
Dockefile: ADD
Dockerfile: RUN
コマンドの実行
Dockerfile: EXPOSE
公開するPort番号の指定
Dockerfile: ENTRYPOINT
moduleの実行方法の指定
e.g. ENTRYPOINT ["node", "app.j"]
$ node app.jsを実行する
Dockerfile: ENV
環境変数の指定
project内からも参照できる
linter
Hadolint
debugger
buildg
https://github.com/ktock/buildg
dockerfileのdebugger
Dockerfileの代替
Packer
Dockerfileより宣言的に書ける
Modus
https://future-architect.github.io/articles/20240726a/
2024年のDockerfileの書き方
Multi-Stage Buildsは当たり前
有益なことを書いている感じがするが、めちゃくちゃわかりづらい
前提を知らなすぎナノが問題?
「実行時モード」ってなに?
「dev containers時代」というのも何のことかわからない
https://www.slideshare.net/zembutsu/explaining-best-practices-for-writing-dockerfiles
https://speakerdeck.com/jacopen/dockerfileshu-kitakunaidegozaru
https://docs.docker.jp/develop/develop-images/dockerfile_best-practices.html
https://qiita.com/Tsuyozo/items/c706a04848c3fbbaf055