-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
37 lines (27 loc) · 785 Bytes
/
Copy pathContainerfile
File metadata and controls
37 lines (27 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM node:22-bookworm-slim AS node
FROM python:3.12-bookworm
ARG CODEX_VERSION=0.142.5
COPY --from=node /usr/local /usr/local
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bash \
bubblewrap \
ca-certificates \
curl \
git \
less \
nano \
openssh-client \
poppler-utils \
ripgrep \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g @openai/codex@${CODEX_VERSION}
RUN useradd --create-home --user-group --home-dir /home/codex --shell /bin/bash codex \
&& mkdir -p /home/codex/.codex \
&& chown -R codex:codex /home/codex \
&& chmod 0777 /home/codex/.codex
WORKDIR /workspace
ENV HOME=/home/codex
ENV CODEX_HOME=/home/codex/.codex
USER codex
CMD ["codex"]