Sign inSign up

eisimoes/code-server

By eisimoes

•Updated 3 months ago

Visual Studio Code in the browser

Image
0

9.6K

eisimoes/code-server repository overview

⁠code-server

GitHub Discussions Latest Release Latest Tag Open Issues License

Code-server image with Python 3 environment.

Code-server is Visual Studio Code running on a remote server, accessible through a browser.

⁠Dockerfile

The Dockerfile used to build the images of this repository can be downloaded from my Github⁠.

⁠Build

If you want to make local modifications to the images for development purposes or just to customize the logic.

git clone https://github.com/eisimoes/code-server
cd code-server
# Customize
docker image build --pull --build-arg CODE_RELEASE=3.XX.XX -t code-server:3.XX.XX .

⁠How to use?

⁠Basic Usage

Create a code-server container using the image's default configuration.

docker container run -d -p 80:8080 -e TZ=America/Sao_Paulo eisimoes/code-server

Enable SSL with a Self-Signed certificate.

docker container run -d -p 443:8443 -e TZ=America/Sao_Paulo eisimoes/code-server --bind-addr 0.0.0.0:8443 --auth none --cert "" /workspace

For more configuration options.

docker container run --rm eisimoes/code-server --help
⁠Advanced Usage

Create a code-server using the host's user and storage.

docker container run -d -p 443:8443 -e TZ=America/Sao_Paulo -u $(id -u):$(id -g) -v /etc/passwd:/etc/passwd:ro -v /etc/group:/etc/group:ro -v /etc/shadow:/etc/shadow:ro -v /home/myuser/:/home/myuser/ eisimoes/code-server --bind-addr 0.0.0.0:8443 --auth none --cert "" /home/myuser/workspace

Use a pre-existing certificate.

docker container run -d -p 443:8443 -e TZ=America/Sao_Paulo -v /etc/ssl/server.crt:/etc/ssl/server.crt:ro -v /etc/ssl/server.key:/etc/ssl/server.key:ro eisimoes/code-server --bind-addr 0.0.0.0:8443 --auth none --cert /etc/ssl/server.crt --cert-key /etc/ssl/server.key /workspace

⁠Contributing

Please open an issue or submit a pull request with any features, fixes, or changes.

https://github.com/eisimoes/code-server/issues⁠

⁠Credits

Based on https://github.com/linuxserver/docker-code-server⁠.

⁠License

Tag summary

Content type

Image

Digest

sha256:75f6f8335…

Size

480.1 MB

Last updated

3 months ago

docker pull eisimoes/code-server