feat(codex_account): 改用 shell 取得登入帳號並補上容器環境
This commit is contained in:
+23
@@ -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"]
|
||||
Reference in New Issue
Block a user