|
@@ -0,0 +1,39 @@
|
|
|
+FROM node:14
|
|
|
+
|
|
|
+RUN apt-get update && apt-get install -y wget unzip openssh-server
|
|
|
+
|
|
|
+# install java 11
|
|
|
+RUN wget https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz &&\
|
|
|
+ tar -zxvf openjdk-11.0.2_linux-x64_bin.tar.gz &&\
|
|
|
+ mv jdk-11.0.2 /usr/local/jdk11 &&\
|
|
|
+ rm -rf openjdk-11.0.2_linux-x64_bin.tar.gz
|
|
|
+
|
|
|
+# install python3.8
|
|
|
+RUN wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz &&\
|
|
|
+ tar -zxvf Python-3.8.0.tgz &&\
|
|
|
+ cd Python-3.8.0 &&\
|
|
|
+ ./configure --prefix=/usr/local/python3.8 &&\
|
|
|
+ make && make install &&\
|
|
|
+ rm -rf Python-3.8.0.tgz
|
|
|
+
|
|
|
+# install go
|
|
|
+RUN wget https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz &&\
|
|
|
+ tar -zxvf go1.14.2.linux-amd64.tar.gz &&\
|
|
|
+ mv go /usr/local/go &&\
|
|
|
+ rm -rf go1.14.2.linux-amd64.tar.gz
|
|
|
+
|
|
|
+# install vscode and extension
|
|
|
+RUN curl -fsSL https://code-server.dev/install.sh | sh &&\
|
|
|
+ code-server --install-extension redhat.vscode-yaml &&\
|
|
|
+ code-server --install-extension orta.vscode-jest &&\
|
|
|
+ code-server --install-extension dbaeumer.vscode-eslint &&\
|
|
|
+ code-server --install-extension ms-python.python &&\
|
|
|
+ code-server --install-extension octref.vetur &&\
|
|
|
+ code-server --install-extension ms-azuretools.vscode-docker &&\
|
|
|
+ code-server --install-extension ardisaurus.gitflow-actions-sidebar &&\
|
|
|
+ code-server --install-extension eamodio.gitlens &&\
|
|
|
+ echo done
|
|
|
+
|
|
|
+# 指定字符集支持命令行输入中文(根据需要选择字符集)
|
|
|
+ENV LANG C.UTF-8
|
|
|
+ENV LANGUAGE C.UTF-8
|