Web-based VSCode IDE: Compatible, accessible, extensible.
2.0K
Introducing a web-based rendition of Visual Studio Code:
docker-compose.yamlversion: "3"
services:
web_vscode:
container_name: web_vscode
image: techthinkerorg/vscode-ide:latest
privileged: true
env_file: .env
volumes:
- ./vscode-data:/home/developer/workspace
ports:
- "3000:3000"
- "2375:2375"
networks:
- vscode_net
networks:
vscode_net:
.env filePASSWORD=123456
VSCODE_PROXY_URI=https://{{port}}.example.com
docker-compose up -dPASSWORD will be your login password of VSCode IDE.VSCODE_PROXY_URI=https://{{port}}.example.comVSCODE_PROXY_URI=https://example.com/proxy/{{port}}VSCODE_PROXY_URI=http://localhost:3000/proxy/{{port}}DockerfileUsing docker file you can customized the image, even you can add shell script that will execute at the beginning. Don't need to add ENTRYPOINT statement. If you upload your any script to /entrypoint.sh then it will execute.
Here is a example of installing golang in this image.
FROM techthinkerorg/vscode-ide:4.23.1
LABEL MAINTAINER Asif Mohammad Mollah
ARG ARCH=amd64
RUN dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
amd64) ARCH='amd64';; \
arm64) ARCH='arm64';; \
*) ARCH='amd64';; \
esac \
&& echo "Downloading Go for architecture: $ARCH"
# Download the Go binary distribution based on the architecture
RUN sudo apt-get update && \
sudo apt-get install -y wget && \
sudo wget -O go.tar.gz https://golang.org/dl/go1.22.3.linux-$ARCH.tar.gz
RUN sudo tar -C /usr/local -xzf go.tar.gz
RUN sudo rm go.tar.gz
# Add Go binary directory to the PATH environment variable
ENV GOPATH=$HOME/go
ENV GOROOT=/usr/local/go
ENV GOBIN=$GOPATH/bin
ENV PATH=$PATH:$GOPATH
ENV PATH=$PATH:$GOROOT/bin
ENV PATH=$PATH:$GOBIN
# Verify the installation
RUN go version
# If you want entry point script then just add this line
COPY my-script.sh /entrypoint.sh
It will create docker container with built in Golang installation.
Content type
Image
Digest
sha256:1ed6e9369…
Size
601.6 MB
Last updated
about 2 years ago
docker pull techthinkerorg/vscode-ide