
도커 이미지 빌드 및 배포
·
Cloud & Architecture/Docker
1. Stopping at a specific build stage —target option docker build --target builder -f Dockerfile -t react-b:latest . The -target option allows you to specify a specific stage at which you'd like to stop. It can be useful if your last step is only used in production or for testing. 특정 빌드 단계를 수정할 경우 test 데이터를 활용해 testing 단계를 사용해보고 실제 데이터로 제품 테스트를 할 경우 디버깅 상징이나 도구들이 사용가능한 상태에서 Debug 단계를 사용하고 Produc..