npm 재시도 옵션 수정으로 Claude Code CLI 설치 문제 해결

This commit is contained in:
2025-08-31 21:58:47 +09:00
parent 3ff9d2ddb0
commit 299a237e5a
2 changed files with 16 additions and 37 deletions

View File

@@ -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

View File

@@ -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"]