From 299a237e5a4c44c39abf5bd37a82513faab3074d Mon Sep 17 00:00:00 2001 From: chiDT Date: Sun, 31 Aug 2025 21:58:47 +0900 Subject: [PATCH] =?UTF-8?q?npm=20=EC=9E=AC=EC=8B=9C=EB=8F=84=20=EC=98=B5?= =?UTF-8?q?=EC=85=98=20=EC=88=98=EC=A0=95=EC=9C=BC=EB=A1=9C=20Claude=20Cod?= =?UTF-8?q?e=20CLI=20=EC=84=A4=EC=B9=98=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 18 ++++++++++++++++-- Dockerfile.test | 35 ----------------------------------- 2 files changed, 16 insertions(+), 37 deletions(-) delete mode 100644 Dockerfile.test diff --git a/Dockerfile b/Dockerfile index 37dd392..2b47359 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,8 +35,22 @@ RUN curl -q -L -o vscode.deb https://update.code.visualstudio.com/1.103.2/linux- && apt-get install ./vscode.deb \ && rm -rf ./vscode.deb /etc/apt/sources.list.d/vscode.sources -# install claude code cli -RUN npm install -g @anthropic-ai/claude-code --retry 3 --retry-delay 5000 +# install .NET 8 and .NET 9 (전역 설치) +RUN curl -L https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh +RUN chmod +x dotnet-install.sh +RUN ./dotnet-install.sh --channel 8.0 --install-dir /usr/share/dotnet +RUN ./dotnet-install.sh --channel 9.0 --install-dir /usr/share/dotnet +RUN rm -rf ./dotnet-install.sh + +# PATH에 .NET 추가 및 심볼릭 링크 생성 +RUN ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet +ENV PATH="/usr/share/dotnet:${PATH}" +ENV DOTNET_ROOT="/usr/share/dotnet" + +# Claude code cli (npm으로 직접 설치) +RUN npm install -g @anthropic-ai/claude-code +ENV PATH="/usr/local/bin:${PATH}" + COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/Dockerfile.test b/Dockerfile.test deleted file mode 100644 index a8d98e8..0000000 --- a/Dockerfile.test +++ /dev/null @@ -1,35 +0,0 @@ -FROM debian:trixie - -ENV DEBIAN_FRONTEND=noninteractive - -# 한국 Debian 미러 소스로 변경 -RUN echo "deb http://ftp.kr.debian.org/debian trixie main" > /etc/apt/sources.list && \ - echo "deb http://ftp.kr.debian.org/debian trixie-updates main" >> /etc/apt/sources.list && \ - echo "deb http://ftp.kr.debian.org/debian-security trixie-security main" >> /etc/apt/sources.list - -RUN apt-get update - -# 기본 패키지만 설치 (빠른 테스트용) -RUN apt-get install -y \ - locales \ - xfce4 \ - xfce4-goodies \ - xorgxrdp \ - xrdp \ - --fix-missing \ - && apt-get clean && rm -rf /var/lib/apt/lists/* - -# 한국어 설정 -ENV TZ=Asia/Seoul -ENV LANG=ko_KR.UTF-8 -ENV LANGUAGE=ko_KR:ko -ENV LC_ALL=ko_KR.UTF-8 - -RUN sed -i 's/^# *ko_KR.UTF-8 UTF-8/ko_KR.UTF-8 UTF-8/' /etc/locale.gen && \ - locale-gen $LANG && \ - update-locale LANG=$LANG - -EXPOSE 3389 - -# 간단한 시작 명령 -CMD ["/bin/bash"]