Initial commit

This commit is contained in:
2026-06-08 22:19:08 +09:00
commit 5a2c5df041
22 changed files with 3520 additions and 0 deletions

36
Dockerfile Normal file
View File

@@ -0,0 +1,36 @@
FROM python:3.12-slim
ARG CODEX_NPM_PACKAGE=@openai/codex
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
CODEX_HOME=/root/.codex \
BOT_STATE_PATH=/app/data/state.json \
BOT_WORKSPACE_ROOT=/workspaces \
CODEX_APP_SERVER_URL=ws://127.0.0.1:4500
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
nodejs \
npm \
openssh-client \
&& npm install -g "${CODEX_NPM_PACKAGE}" \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app
COPY scripts ./scripts
COPY README.md ./
RUN mkdir -p /app/data /workspaces /root/.codex \
&& chmod +x /app/scripts/start.sh
CMD ["/app/scripts/start.sh"]