Dockerfile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. FROM node:14
  2. RUN apt-get update && apt-get install -y wget unzip openssh-server
  3. # install java 11
  4. RUN wget https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz &&\
  5. tar -zxvf openjdk-11.0.2_linux-x64_bin.tar.gz &&\
  6. mv jdk-11.0.2 /usr/local/jdk11 &&\
  7. rm -rf openjdk-11.0.2_linux-x64_bin.tar.gz
  8. # install python3.8
  9. RUN wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz &&\
  10. tar -zxvf Python-3.8.0.tgz &&\
  11. cd Python-3.8.0 &&\
  12. ./configure --prefix=/usr/local/python3.8 &&\
  13. make && make install &&\
  14. rm -rf Python-3.8.0.tgz
  15. # install go
  16. RUN wget https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz &&\
  17. tar -zxvf go1.14.2.linux-amd64.tar.gz &&\
  18. mv go /usr/local/go &&\
  19. rm -rf go1.14.2.linux-amd64.tar.gz
  20. # install vscode and extension
  21. RUN curl -fsSL https://code-server.dev/install.sh | sh &&\
  22. code-server --install-extension redhat.vscode-yaml &&\
  23. code-server --install-extension orta.vscode-jest &&\
  24. code-server --install-extension dbaeumer.vscode-eslint &&\
  25. code-server --install-extension ms-python.python &&\
  26. code-server --install-extension octref.vetur &&\
  27. code-server --install-extension ms-azuretools.vscode-docker &&\
  28. code-server --install-extension ardisaurus.gitflow-actions-sidebar &&\
  29. code-server --install-extension eamodio.gitlens &&\
  30. echo done
  31. # 指定字符集支持命令行输入中文(根据需要选择字符集)
  32. ENV LANG C.UTF-8
  33. ENV LANGUAGE C.UTF-8