npm 재시도 옵션 수정으로 Claude Code CLI 설치 문제 해결
This commit is contained in:
18
Dockerfile
18
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
|
||||
|
||||
Reference in New Issue
Block a user