Dockerfile

Dockerfile

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2019 Nov 11 6:6
Editor
Edited
Edited
2023 Aug 28 17:1
Refs
Refs

maintainer 쓰지마 deprecated use Label

레이어별 캐싱이 된다면 빌드마다 달라지는 레이어를 최소화하고 공통 도커 레이어두기
Dockerfile Commands

Dockerfile practice

  • non root user
  • only executable & not writable
  • use minimal image
  • only expose service port
  • use docker secret or k8s secret
  • dockerignore
  • minimalize layer(constructions)
  • layer 순서 잘 고려하기 cache
 
 
 
 

Recommendations