From 077f29bf803e1dc1da0ef52fbbbff33951222958 Mon Sep 17 00:00:00 2001 From: wannabeing Date: Mon, 11 Aug 2025 16:50:29 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=9F=B0=ED=83=80=EC=9E=84=EB=B2=A0?= =?UTF-8?q?=EC=9D=B4=EC=8A=A4=EC=9D=B4=EB=AF=B8=EC=A7=80=EB=A5=BC=20Ubuntu?= =?UTF-8?q?=20=EA=B3=84=EC=97=B4=EB=A1=9C=20=EB=B3=80=EA=B2=BD=ED=95=98?= =?UTF-8?q?=EC=97=AC=20apt-get=20=EB=AA=85=EB=A0=B9=EC=96=B4=EA=B0=80=20?= =?UTF-8?q?=EB=8F=99=EC=9E=91=ED=95=A0=20=EC=88=98=20=EC=9E=88=EA=B2=8C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cs25-service/Dockerfile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/cs25-service/Dockerfile b/cs25-service/Dockerfile index dc2c1800..068a74ac 100644 --- a/cs25-service/Dockerfile +++ b/cs25-service/Dockerfile @@ -12,7 +12,7 @@ COPY cs25-common cs25-common/ # 테스트 생략하여 빌드 안정화 RUN ./gradlew :cs25-service:bootJar --stacktrace --no-daemon -FROM openjdk:17 +FROM eclipse-temurin:17-jre-jammy # 메타 정보 LABEL type="application" module="cs25-service" @@ -21,12 +21,17 @@ LABEL type="application" module="cs25-service" WORKDIR /apps # Node.js + npm 설치 후, MCP 서버 전역 설치 -RUN apt-get update && apt-get install -y curl ca-certificates gnupg \ - && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ - && apt-get install -y nodejs \ - && npm install -g @modelcontextprotocol/server-brave-search \ - && node -v && npm -v && which server-brave-search \ - && apt-get clean && rm -rf /var/lib/apt/lists/* +RUN apt-get update \ + && apt-get install -y --no-install-recommends curl ca-certificates gnupg bash \ + && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ + && apt-get install -y --no-install-recommends nodejs \ + && npm install -g @modelcontextprotocol/server-brave-search \ + && npm cache clean --force \ + && apt-get purge -y gnupg \ + && apt-get autoremove -y --purge \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + # jar 복사 COPY --from=builder /build/cs25-service/build/libs/*.jar app.jar