feat(codex_account): 改用 shell 取得登入帳號並補上容器環境

This commit is contained in:
2026-06-29 09:48:24 +00:00
parent 328c8a12dc
commit f8f67524ae
3 changed files with 95 additions and 60 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bash \
ca-certificates \
coreutils \
gawk \
jq \
nodejs \
npm \
&& npm install -g @openai/codex \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
COPY app/codex_account.py /usr/local/bin/codex-account
RUN chmod +x /usr/local/bin/codex-account
CMD ["codex-account"]