.dockerignore?
Image build 할 때 추가하지 말아야할 파일이나 폴더를 지정한 텍스트 파일.
.gitignore 과 비슷하다
실제 코드를 실행할 때 필요하지 않은 바이너리 파일들
.git
.cache
logs/
*.md
**/*.class
Dockerfile 작성시 주의사항
Dockerfile 작성시 COPY 명령 사용할 때,
COPY . . 으로 현재디렉토리 모든 파일을 가져오기 보다는 필요한 파일이나 폴더를 일일이 적어주는 게 좋음
.dockerignore과 비슷한 목적의 파일들
.gitignore
.npmignore
.eslintignore
.hgignore
'데브코스 데이터엔지니어링' 카테고리의 다른 글
| Docker Network voting application 예제 프로그램 (2) compose 사용 (0) | 2024.11.19 |
|---|---|
| Docker Compose란? (1) | 2024.11.19 |
| Docker Volume mount 마운트 (0) | 2024.11.19 |
| Docker Network voting application 예제 프로그램(1) (0) | 2024.11.19 |
| Docker 환경 클린업 방법 컨테이너, 이미지 삭제, Troubleshoot clean (0) | 2024.11.19 |