19장. Docker standalone build
output: 'standalone'과 multi-stage Dockerfile을 쓴다. build-time 공개 환경변수와 runtime secret을 혼동하지 않는다. root가 아닌 사용자, 작은 base, health, signal 종료, image digest를 검증한다.
docker build -t localloop:local example
docker run --rm -p 3000:3000 --env-file example/.env.local localloop:local
curl -fsS http://localhost:3000/api/health