Skip to content

Minimal Alpine Linux with glibc based image for code-server. It enables one to run VS Code in the browser.

License

Notifications You must be signed in to change notification settings

martinussuherman/alpine-code-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alpine-code-server

GitHub Docker Pulls Docker Stars

From Alpine

Docker Image Version (tag latest semver) Docker Image Size (tag)

Docker Image Version (tag latest semver) Docker Image Size (tag)

Docker Image Version (tag latest semver) Docker Image Size (tag)

Docker Image Version (tag latest semver) Docker Image Size (tag)

Docker Image Version (tag latest semver) Docker Image Size (tag)

Docker Image Version (tag latest semver) Docker Image Size (tag)

Docker Image Version (tag latest semver) Docker Image Size (tag)

Docker Image Version (tag latest semver) Docker Image Size (tag)

Docker Image Version (tag latest semver) Docker Image Size (tag)


What is this image for ?

This is an Minimal Alpine Linux image with glibc based image for code-server. It enables one to run VS Code in the browser.


Why use this image?

code-server service on this container will run as non-root (vscode) user. This add an extra layer of security and are generally recommended for production environments. This container also allow mapping of the user id and group id of the user running docker to vscode user and group, which will enable the use of more restrictive file permission.


How to use this image?

Using docker run

$ docker run --name code-server -v ~/path/on/host:/home/vscode -e TZ=Asia/Jakarta -e EUID=$(id -u) -e EGID=$(id -g) -p 8080:8080 martinussuherman/alpine-code-server

This will set the timezone to Asia/Jakarta (you will want to change it to your own timezone) and map the user id and group id of the current user to vscode user and group.

Using docker-compose

version: '3'

services:
  code-server:
    image: martinussuherman/alpine-code-server
    environment:
      - TZ=Asia/Jakarta
      - EUID=1001
      - EGID=1001
    volumes:
      - ~/path/on/host:/home/vscode
    ports:
      - 8080:8080

Note:

  1. You will want to change the value for EUID and EGID with your current user user id and group id.
  2. code-server config file will be saved to ~/path/on/host/.config/code-server/config.yaml