Dockerfile-python 609 B

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