FROM ubuntu:22.04 # 基本的なツールをインストール RUN apt-get update && apt-get install -y \ curl \ git \ python3 \ nodejs \ npm \ sudo \ && rm -rf /var/lib/apt/lists/* # 非rootユーザーを作成 RUN useradd -m -s /bin/bash claude-user && \ echo 'claude-user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers # 作業ディレクトリを設定 WORKDIR /workspace # ユーザーを切り替え USER claude-user # Claude Codeをインストール(実際のインストールコマンドに置き換え) # RUN curl -fsSL https://... | sh CMD ["/bin/bash"]