Fix insightface installation in Docker container (#333)

This commit resolves an issue encountered while installing the insightface package in a Docker container. The installation process was failing due to missing Python development headers, specifically the Python.h file.

The Dockerfile has been updated to install the python3.11-dev package, which provides the necessary header files and development libraries for building Python extensions. With this change, the insightface package can now be successfully installed in the Docker container.
This commit is contained in:
Isiah Wheeler
2024-05-03 04:40:57 -04:00
committed by GitHub
parent d611151e81
commit cfb96b02cb

View File

@@ -2,7 +2,7 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim
# Install python
RUN apt update
RUN apt install -y git wget build-essential python3.11 python3.11-venv
RUN apt install -y git wget build-essential python3.11 python3.11-venv python3.11-dev
# Install dependencies for controlnet preprocessors
RUN apt install -y libglib2.0-0 libgl1