Skip to content

[BUG]: Docker container is missing system libraries required for OpenCV #275

@qngu0461

Description

@qngu0461

name: 🐛Docker runtime dependency missing
about: Create a report to help us improve FireForm.
title: "[BUG]: Docker container is missing system libraries required for OpenCV"
labels: bug
assignees: ''


⚡️ Describe the Bug

The Docker container is missing system libraries required for OpenCV and image-processing dependencies.
When running the app inside the container, it crashes because these libraries are not installed:

  • libgl1: OpenGL library required by opencv-python
  • libglib2.0-0: GLib library required by several Python image-processing packages

👣 Steps to Reproduce

f1. Build and start the containers
2. Run:

make exec

3. See error:
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

## 📉 Expected Behavior
The app should start successfully in Docker without crashing due to missing system libraries.

## 🖥️ Environment Information
OS: macOS
Docker/Compose Version: Docker 29.2.1
Ollama Model used: mistral:latest

## 📸 Screenshots/Logs
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

## 🕵️ Possible Fix
Add the missing system packages to apt-get install in the Dockerfile:
RUN apt-get update && apt-get install -y \
 curl \
 libgl1 \
 libglib2.0-0 \
 && rm -rf /var/lib/apt/lists/*


Then we run: 

make down                             
make build
make up

make exec

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions