Skip to content

Generated Django Docker image build fails when installing Python dependencies #579

Description

@v-ruizh

OS: Win 11 x64 (DevBox machine)
Build Version: 20260807.1

Repro Steps:

  1. Open a Django project django_project.zip in VS Code.
  2. Add Docker files.
  3. Right-click the Dockerfile and execute "Build Image..." command.
  4. Wait for the image build process to complete.

Expect:
The Docker image builds successfully.

Actual:
The image build fails during dependency installation.
Image

More Info:

  1. A Windows Security notification is displayed during building the image.
    Image
  2. The same package can be installed successfully on the host machine using python -m pip install django==5.0.1.
  3. This issue also reproduces for Flask project.
  4. The host machine is configured to use an approved package feed, while the Docker build appears to access files.pythonhosted.org directly.
  5. It is unclear whether this is an environment restriction or compatibility/onboarding gap, but the generated Docker image cannot be built successfully in this scenario.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions