This commit is contained in:
2025-07-05 13:48:50 +09:00
parent 00c9af330b
commit 9758126225
26 changed files with 3134 additions and 0 deletions

26
docker/Dockerfile Normal file
View File

@ -0,0 +1,26 @@
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"]