-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.codex
More file actions
27 lines (20 loc) · 945 Bytes
/
Dockerfile.codex
File metadata and controls
27 lines (20 loc) · 945 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
# Use the official OpenAI environment as a base image
FROM ghcr.io/openai/codex-universal:latest
# Switch to the root user to install global packages
USER root
RUN install -d -m 0755 /usr/local/bin
COPY scripts/apt-install /usr/local/bin/apt-install
COPY scripts/apt-packages-common /usr/local/share/apt-packages-common
RUN chmod +x /usr/local/bin/apt-install
# Install the Codex CLI tool globally by first sourcing the nvm script
RUN . /root/.nvm/nvm.sh && npm install -g @openai/codex
# Install supplementary tools
RUN apt-install $(cat /usr/local/share/apt-packages-common)
# Set the default working directory
WORKDIR /workspace
# Ensure /usr/local/bin exists
# Add the tmux layout script into the image
ADD scripts/start-tmux-layout /usr/local/bin/start-tmux-layout
RUN chmod +x /usr/local/bin/start-tmux-layout
# Make it the default when no args are provided (uses base entrypoint: bash --login "$@")
CMD ["-lc","start-tmux-layout"]