Skip to content

Commit 132fe02

Browse files
authored
chore: 런타임베이스이미지를 Ubuntu 계열로 변경하여 apt-get 명령어가 동작할 수 있게 변경 (#369)
1 parent 3e1257c commit 132fe02

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

cs25-service/Dockerfile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ COPY cs25-common cs25-common/
1212

1313
# 테스트 생략하여 빌드 안정화
1414
RUN ./gradlew :cs25-service:bootJar --stacktrace --no-daemon
15-
FROM openjdk:17
15+
FROM eclipse-temurin:17-jre-jammy
1616

1717
# 메타 정보
1818
LABEL type="application" module="cs25-service"
@@ -21,12 +21,17 @@ LABEL type="application" module="cs25-service"
2121
WORKDIR /apps
2222

2323
# Node.js + npm 설치 후, MCP 서버 전역 설치
24-
RUN apt-get update && apt-get install -y curl ca-certificates gnupg \
25-
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
26-
&& apt-get install -y nodejs \
27-
&& npm install -g @modelcontextprotocol/server-brave-search \
28-
&& node -v && npm -v && which server-brave-search \
29-
&& apt-get clean && rm -rf /var/lib/apt/lists/*
24+
RUN apt-get update \
25+
&& apt-get install -y --no-install-recommends curl ca-certificates gnupg bash \
26+
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
27+
&& apt-get install -y --no-install-recommends nodejs \
28+
&& npm install -g @modelcontextprotocol/server-brave-search \
29+
&& npm cache clean --force \
30+
&& apt-get purge -y gnupg \
31+
&& apt-get autoremove -y --purge \
32+
&& apt-get clean \
33+
&& rm -rf /var/lib/apt/lists/*
34+
3035

3136
# jar 복사
3237
COPY --from=builder /build/cs25-service/build/libs/*.jar app.jar

0 commit comments

Comments
 (0)