dockerfile
This commit is contained in:
parent
7a349e8a94
commit
afbb97baad
17
dockerfile
Normal file
17
dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
# .ide/Dockerfile
|
||||
FROM python:3.8
|
||||
|
||||
COPY .ide/ms-python.vscode-pylance.vsix .
|
||||
|
||||
# 安装 code-server 和扩展(使用 id 安装 python 扩展,使用 vsix 安装包安装 pylance 扩展)
|
||||
RUN curl -fsSL https://code-server.dev/install.sh | sh \
|
||||
&& code-server --install-extension ms-python.python \
|
||||
&& code-server --install-extension ./ms-python.vscode-pylance.vsix \
|
||||
&& echo done
|
||||
|
||||
# 安装 ssh 服务,用于支持 VSCode 客户端通过 Remote-SSH 访问开发环境
|
||||
RUN apt-get update && apt-get install -y wget unzip openssh-server
|
||||
|
||||
# 指定字符集支持命令行输入中文(根据需要选择字符集)
|
||||
ENV LANG C.UTF-8
|
||||
ENV LANGUAGE C.UTF-8
|
Loading…
x
Reference in New Issue
Block a user