- Notifications
You must be signed in to change notification settings - Fork2
A lightweight Alpine docker image that runs openvscode-server (vscode accessible by web)
License
raonigabriel/coder-server
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is my opinionated attempt to build a lightweight docker image to runopenvscode-server. Think vscode, on the browser.
Enough talking, show me some numbers:
REPOSITORY | SIZE¹ |
---|---|
codercom/code-server:latest | 697MB |
linuxserver/code-server:latest | 563MB |
gitpod/openvscode-server:latest | 523MB |
ghcr.io/raonigabriel/coder-server:latest | 208MB |
- (1) Uncompressed sizes, on amd64. Those values are even smaller on aarch64!!
- Based on mycoder-core instead of Ubuntu. This translates tomusl being used instead of glib, but compatibility libraries are also preinstalled.
- Its is Alpine, but usingbash instead ofash.
- By usingtini, we ensure that child processes are correctly reaped.
- Default usercoder and groupcoder using UID and GID = 1000, to ease volume-mapping permissions issues.
- Passwordless,sudo support: easily install extra packages with apk (e.g,
sudo apk add docker-cli jq
) - Preinstalledcloudflare tunnel client, like ngrok but free!! This allows you to create reverse tunnels (when your are behind nat). See their docshere
- Preinstalled tooling (node, npm, git, curl, socat, openssh-client, nano, unzip, brotli, zstd, xz) !!!
- Image is hosted onGitHub Container Registry, hence no Dockerhub caps.
- Whenever possible, install software directly from the Alpine repositories, i.e. use apk instead of downloading / manually installing them.
- Keep it small: do not cross the 250MB image size boundary.
- Multi arch (amd64 && arm64)
By default this image isnot with running with HTTPS but HTTP instead. Its your responsibility to add a reverse-proxy to do that. If you dont, keep in mind that some issues may arise, regarding service workers on the browser. This is because theyneed HTTPS to work properly.
By default this image hasno security enforced (user / password). Its your responsibility to add a reverse-proxy to do that.
docker run -d -p 8000:8000 ghcr.io/raonigabriel/coder-server:latest
Then, point your browser tohttp://localhost:8000
FROM ghcr.io/raonigabriel/coder-server:latest# Setup env variablesENV JAVA_HOME=/usr/lib/jvm/default-jvm \ MAVEN_HOME=/usr/share/java/maven-3 \ GRADLE_HOME=/usr/share/java/gradle# Installing Java and toolsRUN sudo apk --no-cache add maven gradle && \# Installing Java extensions openvscode-server --install-extension vscjava.vscode-java-pack \ vscjava.vscode-gradle vscjava.vscode-spring-initializr
- I amnot sponsored neither work for cloudflare. I just happen to use their services, because they are cool!
- This code comes with no warranty. Use it at your own risk.
- I don't like Apple. Fuck off, fan-boys.
- I don't like left-winged snowflakes. Fuck off, code-covenant.
- I will call my branches the old way. Long livemaster, fuck-off renaming.
About
A lightweight Alpine docker image that runs openvscode-server (vscode accessible by web)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.