-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathDockerfile.runtime
More file actions
32 lines (26 loc) · 1.08 KB
/
Copy pathDockerfile.runtime
File metadata and controls
32 lines (26 loc) · 1.08 KB
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
ARG NODE_IMAGE=node:22-bookworm-slim
FROM ${NODE_IMAGE}
ARG CODEX_VERSION=0.111.0
ARG DEBIAN_MIRROR=""
ARG DEBIAN_SECURITY_MIRROR=""
ARG RUNTIME_APT_PACKAGES="ca-certificates git ripgrep"
LABEL org.opencontainers.image.title="Volc Agent Runtime"
LABEL org.opencontainers.image.description="Disposable local Codex CLI runtime for the CodeJam Starter Kit"
RUN if [ -n "$DEBIAN_SECURITY_MIRROR" ]; then \
find /etc/apt -type f \( -name '*.list' -o -name '*.sources' \) \
-exec sed -i "s|http://deb.debian.org/debian-security|$DEBIAN_SECURITY_MIRROR|g" {} +; \
fi \
&& if [ -n "$DEBIAN_MIRROR" ]; then \
find /etc/apt -type f \( -name '*.list' -o -name '*.sources' \) \
-exec sed -i "s|http://deb.debian.org/debian|$DEBIAN_MIRROR|g" {} +; \
fi \
&& apt-get update \
&& apt-get install -y --no-install-recommends $RUNTIME_APT_PACKAGES \
&& npm install --global "@openai/codex@${CODEX_VERSION}" \
&& codex --version \
&& rm -rf /var/lib/apt/lists/*
ENV CODEX_HOME=/codex-home
ENV HOME=/tmp
ENV NO_COLOR=1
WORKDIR /workspace
CMD ["codex", "--version"]