123456789101112131415161718192021 |
- FROM python:3.10
- # install vscode and extension
- RUN curl -fsSL https://code-server.dev/install.sh | sh &&\
- code-server --install-extension ms-python.python &&\
- code-server --install-extension eamodio.gitlens &&\
- echo done
- RUN apt-get update && apt-get install -y wget unzip openssh-server
- # 指定字符集支持命令行输入中文(根据需要选择字符集)
- ENV LANG C.UTF-8
- ENV LANGUAGE C.UTF-8
- WORKDIR /app
- VOLUME [ "/app" ]
- # docker build -t jianboy/python:3.10 -f '.ide/Dockerfile-python' .
- # docker run -rm -it -v /workspace:/app jianboy/python:3.10 /bin/bash
- # python main.py
|