op-replay-clipper (starpilot-gpu)

Published 2026-11-03 17:52:15 -05:00 by Zikeji in Zikeji/op-replay-clipper

Installation

docker pull git.vae.me/zikeji/op-replay-clipper:starpilot-gpu
sha256:7eadf189e6749b324883e8fc99f65e25522c8348b0819c7b1146c1fa65e1fe0a

Image layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=22.04
ADD file:3bd10da0673e2e72cb06a1f64a9df49a36341df39b0f762e3d1b38ee4de296fa in /
CMD ["/bin/bash"]
ENV NVARCH=x86_64
ENV NVIDIA_REQUIRE_CUDA=cuda>=12.4 brand=tesla,driver>=470,driver<471 brand=unknown,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=geforce,driver>=470,driver<471 brand=geforcertx,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=titan,driver>=470,driver<471 brand=titanrtx,driver>=470,driver<471 brand=tesla,driver>=525,driver<526 brand=unknown,driver>=525,driver<526 brand=nvidia,driver>=525,driver<526 brand=nvidiartx,driver>=525,driver<526 brand=geforce,driver>=525,driver<526 brand=geforcertx,driver>=525,driver<526 brand=quadro,driver>=525,driver<526 brand=quadrortx,driver>=525,driver<526 brand=titan,driver>=525,driver<526 brand=titanrtx,driver>=525,driver<526 brand=tesla,driver>=535,driver<536 brand=unknown,driver>=535,driver<536 brand=nvidia,driver>=535,driver<536 brand=nvidiartx,driver>=535,driver<536 brand=geforce,driver>=535,driver<536 brand=geforcertx,driver>=535,driver<536 brand=quadro,driver>=535,driver<536 brand=quadrortx,driver>=535,driver<536 brand=titan,driver>=535,driver<536 brand=titanrtx,driver>=535,driver<536
ENV NV_CUDA_CUDART_VERSION=12.4.127-1
ENV NV_CUDA_COMPAT_PACKAGE=cuda-compat-12-4
ARG TARGETARCH
LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com>
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends gnupg2 curl ca-certificates && curl -fsSLO https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/${NVARCH}/cuda-keyring_1.1-1_all.deb && dpkg -i cuda-keyring_1.1-1_all.deb && apt-get purge --autoremove -y curl && rm -rf /var/lib/apt/lists/* # buildkit
ENV CUDA_VERSION=12.4.1
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends cuda-cudart-12-4=${NV_CUDA_CUDART_VERSION} ${NV_CUDA_COMPAT_PACKAGE} && rm -rf /var/lib/apt/lists/* # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf # buildkit
ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64
COPY NGC-DL-CONTAINER-LICENSE / # buildkit
ENV NVIDIA_VISIBLE_DEVICES=all
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
ENV NV_CUDA_LIB_VERSION=12.4.1-1
ENV NV_NVTX_VERSION=12.4.127-1
ENV NV_LIBNPP_VERSION=12.2.5.30-1
ENV NV_LIBNPP_PACKAGE=libnpp-12-4=12.2.5.30-1
ENV NV_LIBCUSPARSE_VERSION=12.3.1.170-1
ENV NV_LIBCUBLAS_PACKAGE_NAME=libcublas-12-4
ENV NV_LIBCUBLAS_VERSION=12.4.5.8-1
ENV NV_LIBCUBLAS_PACKAGE=libcublas-12-4=12.4.5.8-1
ENV NV_LIBNCCL_PACKAGE_NAME=libnccl2
ENV NV_LIBNCCL_PACKAGE_VERSION=2.21.5-1
ENV NCCL_VERSION=2.21.5-1
ENV NV_LIBNCCL_PACKAGE=libnccl2=2.21.5-1+cuda12.4
ARG TARGETARCH
LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com>
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends cuda-libraries-12-4=${NV_CUDA_LIB_VERSION} ${NV_LIBNPP_PACKAGE} cuda-nvtx-12-4=${NV_NVTX_VERSION} libcusparse-12-4=${NV_LIBCUSPARSE_VERSION} ${NV_LIBCUBLAS_PACKAGE} ${NV_LIBNCCL_PACKAGE} && rm -rf /var/lib/apt/lists/* # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-mark hold ${NV_LIBCUBLAS_PACKAGE_NAME} ${NV_LIBNCCL_PACKAGE_NAME} # buildkit
COPY entrypoint.d/ /opt/nvidia/entrypoint.d/ # buildkit
COPY nvidia_entrypoint.sh /opt/nvidia/ # buildkit
ENV NVIDIA_PRODUCT_NAME=CUDA
ENTRYPOINT ["/opt/nvidia/nvidia_entrypoint.sh"]
ENV NV_CUDA_LIB_VERSION=12.4.1-1
ENV NV_CUDA_CUDART_DEV_VERSION=12.4.127-1
ENV NV_NVML_DEV_VERSION=12.4.127-1
ENV NV_LIBCUSPARSE_DEV_VERSION=12.3.1.170-1
ENV NV_LIBNPP_DEV_VERSION=12.2.5.30-1
ENV NV_LIBNPP_DEV_PACKAGE=libnpp-dev-12-4=12.2.5.30-1
ENV NV_LIBCUBLAS_DEV_VERSION=12.4.5.8-1
ENV NV_LIBCUBLAS_DEV_PACKAGE_NAME=libcublas-dev-12-4
ENV NV_LIBCUBLAS_DEV_PACKAGE=libcublas-dev-12-4=12.4.5.8-1
ENV NV_CUDA_NSIGHT_COMPUTE_VERSION=12.4.1-1
ENV NV_CUDA_NSIGHT_COMPUTE_DEV_PACKAGE=cuda-nsight-compute-12-4=12.4.1-1
ENV NV_NVPROF_VERSION=12.4.127-1
ENV NV_NVPROF_DEV_PACKAGE=cuda-nvprof-12-4=12.4.127-1
ENV NV_LIBNCCL_DEV_PACKAGE_NAME=libnccl-dev
ENV NV_LIBNCCL_DEV_PACKAGE_VERSION=2.21.5-1
ENV NCCL_VERSION=2.21.5-1
ENV NV_LIBNCCL_DEV_PACKAGE=libnccl-dev=2.21.5-1+cuda12.4
ARG TARGETARCH
LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com>
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends cuda-cudart-dev-12-4=${NV_CUDA_CUDART_DEV_VERSION} cuda-command-line-tools-12-4=${NV_CUDA_LIB_VERSION} cuda-minimal-build-12-4=${NV_CUDA_LIB_VERSION} cuda-libraries-dev-12-4=${NV_CUDA_LIB_VERSION} cuda-nvml-dev-12-4=${NV_NVML_DEV_VERSION} ${NV_NVPROF_DEV_PACKAGE} ${NV_LIBNPP_DEV_PACKAGE} libcusparse-dev-12-4=${NV_LIBCUSPARSE_DEV_VERSION} ${NV_LIBCUBLAS_DEV_PACKAGE} ${NV_LIBNCCL_DEV_PACKAGE} ${NV_CUDA_NSIGHT_COMPUTE_DEV_PACKAGE} && rm -rf /var/lib/apt/lists/* # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-mark hold ${NV_LIBCUBLAS_DEV_PACKAGE_NAME} ${NV_LIBNCCL_DEV_PACKAGE_NAME} # buildkit
ENV LIBRARY_PATH=/usr/local/cuda/lib64/stubs
ENV NV_CUDNN_VERSION=9.1.0.70-1
ENV NV_CUDNN_PACKAGE_NAME=libcudnn9-cuda-12
ENV NV_CUDNN_PACKAGE=libcudnn9-cuda-12=9.1.0.70-1
ENV NV_CUDNN_PACKAGE_DEV=libcudnn9-dev-cuda-12=9.1.0.70-1
ARG TARGETARCH
LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com>
LABEL com.nvidia.cudnn.version=9.1.0.70-1
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ${NV_CUDNN_PACKAGE} ${NV_CUDNN_PACKAGE_DEV} && apt-mark hold ${NV_CUDNN_PACKAGE_NAME} && rm -rf /var/lib/apt/lists/* # buildkit
ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/lib/x86_64-linux-gnu:/usr/local/nvidia/lib64:/usr/local/nvidia/bin
ENV NVIDIA_DRIVER_CAPABILITIES=all
RUN /bin/sh -c set -eux; apt-get update -qq && apt-get install -qqy --no-install-recommends curl; rm -rf /var/lib/apt/lists/*; TINI_VERSION=v0.19.0; TINI_ARCH="$(dpkg --print-architecture)"; curl -sSL -o /sbin/tini "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${TINI_ARCH}"; chmod +x /sbin/tini # buildkit
ENTRYPOINT ["/sbin/tini" "--"]
RUN /bin/sh -c apt-get update -qq && apt-get install -qqy build-essential cmake curl ffmpeg findutils g++ gcc git libavcodec-dev libcairo2-dev libfontconfig1 libgirepository1.0-dev libgl1 libglx-mesa0 libglib2.0-0 libopencv-dev libsm6 libsndfile1 libssl-dev libunistring-dev libxext6 libxrender1 sox unzip wget zip zstd && rm -rf /var/lib/apt/lists/* # buildkit
ENV PATH=/root/.pyenv/shims:/root/.pyenv/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN /bin/sh -c apt-get update -qq && apt-get install -qqy --no-install-recommends make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev git ca-certificates && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && git clone https://github.com/momo-lab/pyenv-install-latest.git "$(pyenv root)"/plugins/pyenv-install-latest && export PYTHON_CONFIGURE_OPTS='--enable-optimizations --with-lto' && export PYTHON_CFLAGS='-O3' && pyenv install-latest "3.12" && pyenv global $(pyenv install-latest --print "3.12") && pip install "wheel<1" # buildkit
RUN /bin/sh -c rm -rf /usr/bin/python3 && ln -s `realpath \`pyenv which python\`` /usr/bin/python3 && chmod +x /usr/bin/python3 # buildkit
RUN /bin/sh -c find / -type f -name "*python*.so" -printf "%h\n" | sort -u > /etc/ld.so.conf.d/cog.conf && ldconfig # buildkit
ENV OPENPILOT_ROOT=/openpilot
RUN /bin/sh -c apt-get update -qq && apt-get install -qqy capnproto git-lfs ca-certificates tzdata libegl1 libgles2 libglvnd0 libx11-6 && rm -rf /var/lib/apt/lists/* # buildkit
COPY /uv /uvx /usr/local/bin/ # buildkit
ENV UV_SYSTEM_PYTHON=true
ENV CFLAGS=-O3 -funroll-loops -fno-strict-aliasing -flto -S
RUN /bin/sh -c uv pip install --no-cache cog # buildkit
ENV CFLAGS=
COPY .cog/tmp/build20261103224125.877368/requirements.txt /tmp/requirements.txt # buildkit
ENV CFLAGS=-O3 -funroll-loops -fno-strict-aliasing -flto -S
RUN /bin/sh -c uv run pip install --cache-dir /root/.cache/pip -r /tmp/requirements.txt # buildkit
ENV CFLAGS=
RUN /bin/sh -c mkdir -p /usr/share/glvnd/egl_vendor.d && printf '{"file_format_version":"1.0.0","ICD":{"library_path":"libEGL_nvidia.so.0"}}\n' > /usr/share/glvnd/egl_vendor.d/10_nvidia.json # buildkit
RUN /bin/sh -c curl -LsSf https://astral.sh/uv/install.sh | sh # buildkit
RUN /bin/sh -c /root/.local/bin/uv python install 3.12 # buildkit
RUN /bin/sh -c git clone --depth 1 --recurse-submodules --shallow-submodules --branch Dom https://github.com/firestar5683/StarPilot.git /openpilot # buildkit
RUN /bin/sh -c /root/.local/bin/uv sync --frozen --extra tools --extra vendored --directory /openpilot # buildkit
RUN /bin/sh -c export PATH="/openpilot/.venv/bin:$PATH" && cd /openpilot && rm -f msgq_repo/libmsgq.a msgq_repo/libvisionipc.a openpilot/common/libcommon.a openpilot/common/libparams_c.so openpilot/starpilot/ui/native/_raylib_extra.so && { find msgq_repo openpilot/common openpilot/starpilot/ui/native openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code openpilot/selfdrive/controls/lib/lateral_mpc_lib/c_generated_code -type f \( -name '*.os' -o -name '*.o' \) -delete 2>/dev/null || true; } && rm -rf openpilot/cereal/gen/cpp && rm -f openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code/libacados_ocp_solver_long.so openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code/libacados.so openpilot/selfdrive/controls/lib/lateral_mpc_lib/c_generated_code/libacados.so openpilot/selfdrive/controls/lib/lateral_mpc_lib/c_generated_code/libacados_ocp_solver_long.so && SCONS_TARGETS="msgq_repo/msgq/_ipc.so msgq_repo/msgq/visionipc/_visionipc.so openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code/acados_ocp_solver_pyx.so openpilot/starpilot/ui/native/_raylib_extra.so" && if [ ! -f msgq_repo/msgq/ipc_py.cc ]; then SCONS_TARGETS="msgq_repo/msgq/ipc_pyx.so msgq_repo/msgq/visionipc/visionipc_pyx.so openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code/acados_ocp_solver_pyx.so"; fi && CAPNP_BIN="$(ls -d /openpilot/.venv/lib/python3.*/site-packages/capnproto/install/bin 2>/dev/null | head -1)" && if [ -n "$CAPNP_BIN" ]; then export PATH="$CAPNP_BIN:$PATH"; fi && /openpilot/.venv/bin/scons -j$(nproc) --ccflags="-Wno-error" $SCONS_TARGETS # buildkit
RUN /bin/sh -c if [ -f /openpilot/selfdrive/assets/fonts/process.py ]; then /openpilot/.venv/bin/python /openpilot/selfdrive/assets/fonts/process.py; elif [ -f /openpilot/openpilot/selfdrive/assets/fonts/process.py ]; then /openpilot/.venv/bin/python /openpilot/openpilot/selfdrive/assets/fonts/process.py; fi # buildkit
WORKDIR /src
EXPOSE map[5000/tcp:{}]
ENV COG_PREDICT_TYPE_STUB=cog_predictor.py:Predictor
CMD ["python" "-m" "cog.server.http"]
COPY . /src # buildkit
RUN /bin/sh -c cp /src/cog-starpilot-ghcr.yaml /src/cog.yaml # buildkit

Labels

Key Value
com.nvidia.cudnn.version 9.1.0.70-1
maintainer NVIDIA CORPORATION <cudatools@nvidia.com>
org.opencontainers.image.created 2025-07-09T18:38:49.933Z
org.opencontainers.image.description
org.opencontainers.image.licenses
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.revision ad40a08da114637a031125d4546de17e34892f17
org.opencontainers.image.source https://github.com/replicate/cog-base-images
org.opencontainers.image.title cog-base-images
org.opencontainers.image.url https://github.com/replicate/cog-base-images
org.opencontainers.image.version cuda12.4-python3.12-X64
Details
Container
2026-11-03 17:52:15 -05:00
0
OCI / Docker
linux/amd64
8.8 GiB
Versions (2) View all
starpilot-gpu 2026-11-03
starpilot-cpu 2026-11-03