https://github.com/martinussuherman/alpine-code-server-dotnet
Minimal Alpine Linux with glibc based image for code-server bundled with .NET/.NET Core SDK.
https://github.com/martinussuherman/alpine-code-server-dotnet
alpine alpine-linux code-server docker docker-image dockerfile net-sdk net50 net60 netcore31
Last synced: 7 months ago
JSON representation
Minimal Alpine Linux with glibc based image for code-server bundled with .NET/.NET Core SDK.
- Host: GitHub
- URL: https://github.com/martinussuherman/alpine-code-server-dotnet
- Owner: martinussuherman
- License: mit
- Created: 2020-06-07T12:00:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-25T03:41:17.000Z (about 4 years ago)
- Last Synced: 2025-04-09T08:16:35.879Z (10 months ago)
- Topics: alpine, alpine-linux, code-server, docker, docker-image, dockerfile, net-sdk, net50, net60, netcore31
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/martinussuherman/alpine-code-server-dotnet
- Size: 44.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# alpine-code-server-dotnet
  
[](https://hub.docker.com/r/martinussuherman/alpine-code-server)
 
 
 
 
 
 
---
## What is this image for ?
This is an [Minimal Alpine Linux image with glibc](https://hub.docker.com/r/jeanblanchard/alpine-glibc) based image for [code-server](https://github.com/cdr/code-server/) bundled with [.NET/.NET Core SDK](https://dotnet.microsoft.com). It enables one to run [VS Code](https://code.visualstudio.com/) in the browser for developing .NET/.NET Core application with [Omnisharp](https://github.com/OmniSharp/omnisharp-roslyn) 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*
```bash
$ 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*
```yaml
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`