Updated TF Image

This commit is contained in:
2026-03-29 02:42:18 +00:00
parent 615d41206a
commit df31857258
4 changed files with 79 additions and 53 deletions
+5 -6
View File
@@ -9,7 +9,7 @@ tags: [docker, container, gpu, golang, bun, sdkman]
# Feature-Rich Docker Workspaces
Provision powerful Docker containers as [Coder workspaces](https://coder.com/docs/workspaces) with this advanced template. It features GPU passthrough, Docker-out-of-Docker (DooD), and automatically installs essential development tools on startup.
Provision powerful Docker containers as [Coder workspaces](https://coder.com/docs/workspaces) with this advanced template. It features GPU passthrough, Docker-out-of-Docker (DooD), and pre-installs essential development tools via a custom Dockerfile.
<!-- TODO: Add screenshot -->
@@ -34,13 +34,12 @@ sudo -u coder docker ps
This template provisions the following resources and features:
- **Base Image**: `codercom/enterprise-base:ubuntu`
- **Base Image**: Custom image built from `codercom/enterprise-base:ubuntu`
- **GPU Support**: Passes all host GPUs to the workspace (`gpus = "all"`) for AI/ML and hardware acceleration.
- **Docker-out-of-Docker (DooD)**: Mounts the host's `/var/run/docker.sock` so you can build and run containers seamlessly from inside your workspace.
- **Auto-Provisioned Tools**: The workspace startup script automatically handles:
- System package updates (`apt-get update` & `apt-get upgrade`)
- **Pre-baked Tools**: The custom Docker image comes pre-installed with:
- System package updates
- Docker CLI
- Nixpacks
- Bun
- Golang
- SDKMAN! & Maven
@@ -49,4 +48,4 @@ This template provisions the following resources and features:
- **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. The startup script handles reinstalling your system-level tools (Go, Bun, SDKMAN!, etc.) on each start. To speed up boot times, you may want to bake these tools into a custom Docker image.
> 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.