feat(input): add codex automation stack

This commit is contained in:
2025-10-15 16:32:26 -05:00
parent e0816486cb
commit 8bf8784d52
10 changed files with 625 additions and 3 deletions

29
input/Docker/Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
FROM node:20-bookworm
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PUID=1000 \
PGID=1000 \
CODEX_HOME=/home/codex
RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
python3 \
python3-venv \
gosu \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN npm install --location=global codex-cli || true
RUN groupadd -r codex && \
useradd -r -m -g codex -s /bin/bash codex
WORKDIR /app
COPY watch_and_customize.py entrypoint.sh ./
RUN chmod +x /app/watch_and_customize.py /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]