diff --git a/Dockerfile b/Dockerfile index 7d8a538..981ea4d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,5 +20,8 @@ RUN curl -fsSL https://bun.sh/install | bash RUN curl -s "https://get.sdkman.io" | bash && \ bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk install maven" +# 5. Install Opencode +RUN curl -fsSL https://opencode.ai/install | bash + # Add tools to path -ENV PATH="/home/coder/.bun/bin:${PATH}" +ENV PATH="/home/coder/.opencode/bin:/home/coder/.bun/bin:${PATH}" diff --git a/README.md b/README.md index 355d041..63d9743 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ --- display_name: Docker Workspaces with GPU & DooD -description: Provision Docker-based Coder workspaces with GPU support, Docker-out-of-Docker, Go, and Bun. +description: Provision Docker-based Coder workspaces with GPU support, Docker-out-of-Docker, Go, Bun, and Opencode. icon: ../../../site/static/icon/docker.png maintainer_github: coder verified: true -tags: [docker, container, gpu, golang, bun, sdkman] +tags: [docker, container, gpu, golang, bun, sdkman, opencode] --- # Feature-Rich Docker Workspaces @@ -43,9 +43,10 @@ This template provisions the following resources and features: - Bun - Golang - SDKMAN! & Maven + - Opencode - **Persistent Storage**: Uses a persistent host directory mapped to `/home/coder` to ensure your files survive workspace restarts. - **Rich Telemetry**: Displays CPU, RAM, Disk, Load Average, and GPU utilization directly in the Coder UI. - **IDE Support**: Native integration with code-server (Browser VS Code) and JetBrains IDEs. > **Note** -> While your `/home/coder` directory is persistent, the container's root filesystem is ephemeral. This template builds a custom Docker image to pre-bake tools (Go, Bun, SDKMAN!, etc.), ensuring your workspace starts instantly while keeping the tools available. +> While your `/home/coder` directory is persistent, the container's root filesystem is ephemeral. This template builds a custom Docker image to pre-bake tools (Go, Bun, SDKMAN!, Opencode, etc.), ensuring your workspace starts instantly while keeping the tools available.