fix: remove apt curl install from runtime image#97
Merged
tlarbals824 merged 1 commit intodevelopfrom May 5, 2026
Merged
Conversation
Switch the runtime stage to the Alpine Temurin JRE so the healthcheck can use BusyBox wget already present in the image. This removes apt package downloads from Docker builds.\n\nConstraint: GitHub Actions image builds were spending minutes in apt-get installing curl for healthchecks.\nRejected: Keep Ubuntu Temurin and install curl | preserves the slow apt network path.\nConfidence: high\nScope-risk: narrow\nDirective: Keep container healthchecks dependency-free from apt packages.\nTested: docker manifest inspect eclipse-temurin:25-jre-alpine; git diff --check\nNot-tested: Full docker build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
문제
Docker 이미지 빌드 중 런타임 스테이지에서
curl하나를 설치하기 위해apt-get update && apt-get install을 수행하고 있었습니다.RUN apt-get update && apt-get install -y --no-install-recommends curlGitHub Actions 환경에서 Ubuntu apt mirror 응답이 느려지면 이 단계가 수 분 이상 지연되어 전체 배포가 늦어질 수 있습니다.
수정 내용
런타임 이미지를 Alpine 기반 Temurin JRE로 변경하고, healthcheck는 Alpine/BusyBox에 기본 포함된
wget을 사용하도록 바꿨습니다.기대 효과
apt-get update/install제거curl설치를 위한 외부 패키지 다운로드 병목 제거검증
docker manifest inspect eclipse-temurin:25-jre-alpinegit diff --check참고
전체 Docker build는 로컬에서 수행하지 않았습니다. CI에서 실제 이미지 빌드까지 확인하면 됩니다.