【发布时间】:2019-12-15 06:40:11
【问题描述】:
我正在使用带有 docker 容器的 vscode。我在用户 settings.json 中有以下条目。
"remote.containers.defaultExtensions": [
"ms-python.python",
"ms-azuretools.vscode-docker",
"ryanluker.vscode-coverage-gutters"
]
但是当我构建或重建容器时,这些插件不会自动安装在容器内。 我是不是做错了什么?
修改
这是我的 dockerfile 的样子
FROM ubuntu:bionic
RUN apt-get update
RUN apt-get install -y python3.6 python3-pip
RUN apt-get install -y git libgl1-mesa-dev
# Currently not using requirements.txt to improve caching
#COPY requirements.txt /home/projects/my_project/
#WORKDIR /home/projects/my_project/
#RUN pip3 install -r requirements.txt
RUN pip3 install torch pandas PyYAML==5.1.2 autowrap Cython==0.29.14
RUN pip3 install numpy==1.17.3 open3d-python==0.7.0.0 pytest==5.2.4 pptk
RUN pip3 install scipy==1.3.1 natsort matplotlib lxml opencv-python==3.2.0.8
RUN pip3 install Pillow scikit-learn testfixtures
RUN pip3 install pip-licenses pylint pytest-cov
RUN pip3 install autopep8
COPY . /home/projects/my_project/
【问题讨论】:
-
请包含 Dockerfile
-
我在问题中添加了 dockerfile 内容。你是这个意思吗?
标签: python docker visual-studio-code