Sign inSign up

freecoderhub/sbx-oc-rust

By freecoderhub

•Updated about 2 months ago

Docker SBX opencode rust sandbox

Image
Developer tools
0

414

freecoderhub/sbx-oc-rust repository overview

⁠Dockerfile

FROM docker/sandbox-templates:opencode-nightly

USER root

### Ubuntu Packages ###
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    fd-find \
    ripgrep \
    curl \
    btop \
    git \
    vim \
    nodejs \
    npm \
    python3 \
    python3-pip \
    python3-venv \
    mingw-w64 \
    clang \
    lld \
    llvm \
    && /usr/bin/ln -sf /usr/bin/fdfind /usr/local/bin/fd \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

### UV ###
ENV UV_INSTALL_DIR=/usr/local/bin
RUN curl -LsSf https://astral.sh/uv/install.sh | sh

WORKDIR /home/agent
USER agent

### Rust ###
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN /home/agent/.cargo/bin/rustup target add \
    x86_64-unknown-linux-gnu \
    x86_64-pc-windows-gnu \
    x86_64-pc-windows-msvc \
    wasm32-unknown-unknown \
    wasm32-wasip1 && \
    /home/agent/.cargo/bin/rustup component add rustfmt clippy rust-analyzer rust-src && \
    /home/agent/.cargo/bin/rustup set default-host x86_64-unknown-linux-gnu

### Semble ###
RUN /usr/local/bin/uv tool install semble

### CodeGraph ###
RUN /usr/bin/npm install -g @colbymchenry/codegraph

Tag summary

Content type

Image

Digest

sha256:18f0beaaa…

Size

2.3 GB

Last updated

about 2 months ago

docker pull freecoderhub/sbx-oc-rust