其他分享
首页 > 其他分享> > docker安装vscode-server

docker安装vscode-server

作者:互联网

docker run -p 8848:8848 -it --rm ubuntu:latest /bin/bash
dpkg -i code-server_4.0.1_amd64.deb

apt-get update
apt-get install \
	vim git gcc make sqlite bzip2 telnet net-tools openssl \
	libssl-dev build-essential libidn11-dev libidn11 \
	libffi-dev zlib1g-dev libbz2-dev libssl-dev libncurses5-dev \
	libsqlite3-dev libreadline-dev tk-dev libgdbm-dev libdb-dev \
	libpcap-dev xz-utils libexpat1-dev liblzma-dev libffi-dev libc6-dev -y

tar -xvf Python-3.8.9.tar.xz
./configure --prefix=/usr/local/python3 --enable-optimizations
make
make install
ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3
export PASSWORD="123456"
code-server --port 8848 --host 0.0.0.0 --auth password

标签:vscode,make,dev,server,8848,--,usr,docker,python3
来源: https://www.cnblogs.com/greene/p/15851628.html