Skip to content

martinussuherman/alpine-code-server-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alpine-code-server-dotnet

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)


What is this image for ?

This is an Minimal Alpine Linux image with glibc based image for code-server bundled with .NET/.NET Core SDK. It enables one to run VS Code in the browser for developing .NET/.NET Core application with Omnisharp support.


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 dan 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-dotnet

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

Using docker-compose

version: '3'

services:
  code-server:
    image: martinussuherman/alpine-code-server-dotnet
    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 dan group id.
  2. code-server config file will be saved to ~/path/on/host/.config/code-server/config.yaml