Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.79 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.79 KB

code-server

Build Docker build

VS Code logo

Features

Build arguments

Name description default
CODE_SERVER_VERSION Base code-server docker image tag. See available tags focal

Usage

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.

Build

docker build -t code-server:focal .
docker build --build-arg CODE_SERVER_VERSION=bookworm -t code-server:bookworm .

Run

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

Source Reference

For the complete base image documentation and reference, please visit the coder/code-server repository.

This project was created by H.Hedhly.