- Builds codercom/code-server based docker images with optional extensions installation support.
As part of the build process, the extensions.txt file contains an optional list of VS Code extension IDs, where each line represents a unique VS Code extension ID.
docker build -t code-server:focal .
docker build --build-arg CODE_SERVER_VERSION=bookworm -t code-server:bookworm .
docker run -it --rm --name code-server -p 8080:8080 --mount type=bind,source="$HOME/.config",target="/home/coder/.config" --mount type=bind,source="/mnt/vscode",target="/home/coder/vscode" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" code-server:focal
docker run -it --rm --name code-server -p 8080:8080 --mount type=bind,source="$HOME/.config",target="/home/coder/.config" --mount type=bind,source="/mnt/vscode",target="/home/coder/vscode" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" code-server:bookworm
For the complete base image documentation and reference, please visit the coder/code-server repository.
This project was created by H.Hedhly.
