ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.
Python ai-agentsamdcomfyuidockerllama-cppllmlocal-ain8nnvidiaopen-webuiragself-hostedspeech-to-textstrix-halotext-to-speechworkflow-automation
ARG SOURCE_DATE_EPOCH=0
FROM debian:bookworm-slim@sha256:7b140f374b289a7c2befc338f42ebe6441b7ea838a042bbd5acbfca6ec875818
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates=20250419~deb12u1 libssl3=3.0.20-1~deb12u2 openssl=3.0.20-1~deb12u2 xz-utils=5.4.1-1+deb12u1 gdb=13.1-3 python3=3.11.2-1+b1 python-is-python3=3.11.2-1+deb12u1 python3-debugpy=1.6.6+ds-1 sqlite3=3.40.1-2+deb12u2 \
&& test "$(gdb --version | head -n 1)" = "GNU gdb (Debian 13.1-3) 13.1" \
&& test "$(python --version 2>&1)" = "Python 3.11.2" \
&& python -c 'import debugpy, importlib.util; assert debugpy.__version__ == "1.6.3+git20221103.a2a3328"; assert importlib.util.find_spec("debugpy.adapter") is not None' \
&& rm -rf /var/lib/apt/lists/* /var/cache/* \
&& rm -f /var/cache/ldconfig/aux-cache /var/log/alternatives.log /var/log/apt/history.log /var/log/apt/term.log /var/log/dpkg.log
ADD --checksum=sha256:b9b6f86ed85d4ef5e0211eaebf75d057bd8bb520bba438a95dd0f4e42234bbfe https://files.pythonhosted.org/packages/b5/55/f9641a4eebcc2f4df631287d6c3b9ed2eea3b92644f93acbad825e3972b6/duckdb-1.5.5-cp311-cp311-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl /tmp/duckdb.whl
ADD --checksum=sha256:22aa0cb92a1ee2d60d6a15a638b2e8e0dd99aea21ac0cd8fb29da8e382e075a9 https://files.pythonhosted.org/packages/2b/fe/0888040a24e4504098b85d8ad486b14cb01cf6b030bbe479dfc2dcffc2ac/polars-1.43.2-py3-none-any.whl /tmp/polars.whl
ADD --checksum=sha256:6d5a7ae004a2723ebf4427f6d6a639f30f86af4cf077075f6b35d04711154fc3 https://files.pythonhosted.org/packages/62/60/64deacb3abc70c52e2d88a808a052d1621c86a48fe9194f2c065579ab1cd/polars_runtime_32-1.43.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl /tmp/polars-runtime.whl
RUN --network=none install -d -m 0555 /opt/pixel/data-runtime \
&& python3 -m zipfile -e /tmp/duckdb.whl /opt/pixel/data-runtime \
&& python3 -m zipfile -e /tmp/polars.whl /opt/pixel/data-runtime \
&& python3 -m zipfile -e /tmp/polars-runtime.whl /opt/pixel/data-runtime \
&& find /opt/pixel/data-runtime -type d -exec chmod 0555 {} + \
&& find /opt/pixel/data-runtime -type f -exec chmod 0444 {} + \
&& PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=/opt/pixel/data-runtime python3 -B -c 'import duckdb, polars, sqlite3, sys; assert sys.version_info[:3] == (3, 11, 2); assert duckdb.__version__ == "1.5.5"; assert polars.__version__ == "1.43.2"; assert sqlite3.sqlite_version == "3.40.1"' \
&& test "$(sqlite3 --version | cut -d' ' -f1)" = "3.40.1" \
&& find /opt/pixel/data-runtime -type d -name __pycache__ -prune -exec rm -rf {} + \
&& rm -f /tmp/duckdb.whl /tmp/polars.whl /tmp/polars-runtime.whl
ADD --checksum=sha256:bd5c488fc20fa237a944279bf32cae2f986cf10d5d5d9e8705819859daeb2f4a https://registry.npmjs.org/pyright/-/pyright-1.1.411.tgz /tmp/pyright-runtime.tgz
ADD --checksum=sha256:9749e988f437343b7fa832c69ded82a312e41a03116d766797ac14f6f9eee578 https://nodejs.org/dist/v22.23.1/node-v22.23.1-linux-x64.tar.xz /tmp/node-runtime.tar.xz
ADD --checksum=sha256:d28b4fd4bd9f07ea71083d0cc40c579595cebbd4c10bc8ca98a6d385432e7255 https://registry.npmjs.org/@openai/codex/-/codex-0.147.0.tgz /tmp/codex.tgz
ADD --checksum=sha256:c969740cf8297e4c31905cd551efeb2c99af5080c12c236bdf825598b250139a https://registry.npmjs.org/@openai/codex/-/codex-0.147.0-linux-x64.tgz /tmp/codex-linux-x64.tgz
RUN install -d -m 0755 /input /opt/node /opt/codex/node_modules/@openai/codex /opt/codex/node_modules/@openai/codex-linux-x64 /opt/pixel/builder-runtime/pyright /opt/pixel/scripts \
&& tar -xJf /tmp/node-runtime.tar.xz --strip-components=1 -C /opt/node \
&& test "$(/opt/node/bin/node --version)" = "v22.23.1" \
&& tar -xzf /tmp/pyright-runtime.tgz --strip-components=1 -C /opt/pixel/builder-runtime/pyright \
&& find /opt/pixel/builder-runtime/pyright -type d -exec chmod 0555 {} + \
&& find /opt/pixel/builder-runtime/pyright -type f -exec chmod 0444 {} + \
&& chmod 0555 /opt/pixel/builder-runtime/pyright/index.js /opt/pixel/builder-runtime/pyright/langserver.index.js \
&& ln -s /opt/pixel/builder-runtime/pyright/index.js /usr/local/bin/pyright \
&& ln -s /opt/pixel/builder-runtime/pyright/langserver.index.js /usr/local/bin/pyright-langserver \
&& tar -xzf /tmp/codex.tgz --strip-components=1 -C /opt/codex/node_modules/@openai/codex \
&& tar -xzf /tmp/codex-linux-x64.tgz --strip-components=1 -C /opt/codex/node_modules/@openai/codex-linux-x64 \
&& sed -i '1c #!/opt/node/bin/node' /opt/codex/node_modules/@openai/codex/bin/codex.js \
&& chmod 0555 /opt/codex/node_modules/@openai/codex/bin/codex.js \
&& ln -s /opt/codex/node_modules/@openai/codex/bin/codex.js /usr/local/bin/codex \
&& test "$(PATH=/opt/node/bin:/usr/local/bin:/usr/bin:/bin pyright --version)" = "pyright 1.1.411" \
&& test "$(HOME=/tmp/codex-version-home CODEX_HOME=/tmp/codex-version-home /usr/local/bin/codex --version)" = "codex-cli 0.147.0" \
&& echo 'cb0a15567e9a60a5820d54b0f6ae86d504dc3805c1eab21a47f70e3eb7b73a40 /opt/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin/codex' | sha256sum -c - \
&& rm -rf /tmp/codex-version-home /root/.codex \
&& rm -f /tmp/node-runtime.tar.xz /tmp/pyright-runtime.tgz /tmp/codex.tgz /tmp/codex-linux-x64.tgz \
&& groupadd --gid 1000 pixel-comparison \
&& useradd --uid 1000 --gid 1000 --no-create-home --home-dir /nonexistent --shell /usr/sbin/nologin pixel-comparison
COPY --chmod=0555 scripts/codex_comparison_workspace.py /opt/pixel/scripts/codex_comparison_workspace.py
LABEL org.opencontainers.image.title="Pixel Codex comparison runner" \
org.opencontainers.image.version="4.1.0" \
org.opencontainers.image.base.name="debian:bookworm-slim" \
org.osmantic.pixel.comparison-runtime="pixel-codex-comparison-runtime-v1" \
org.osmantic.pixel.node-runtime="22.23.1" \
org.osmantic.pixel.codex-version="0.147.0" \
org.osmantic.pixel.codex-binary-sha256="cb0a15567e9a60a5820d54b0f6ae86d504dc3805c1eab21a47f70e3eb7b73a40" \
org.osmantic.pixel.gdb-version="13.1" \
org.osmantic.pixel.python-version="3.11.2" \
org.osmantic.pixel.pyright-version="1.1.411" \
org.osmantic.pixel.debugpy-version="1.6.3+git20221103.a2a3328" \
org.osmantic.pixel.sqlite-version="3.40.1" \
org.osmantic.pixel.duckdb-version="1.5.5" \
org.osmantic.pixel.polars-version="1.43.2" \
org.osmantic.pixel.default-uid="1000"
ENV PATH=/opt/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
PYTHONPATH=/opt/pixel/data-runtime \
PYTHONDONTWRITEBYTECODE=1
USER 1000:1000
WORKDIR /work/source
ENTRYPOINT ["/usr/local/bin/codex"]