Files
usda-vision/camera-management-api/Dockerfile

20 lines
705 B
Docker

# API development image with Huateng Vision SDK (local bundle)
FROM python:3.11-slim
# Install system dependencies required by SDK and tooling
RUN apt-get update && apt-get install -y --no-install-recommends \
bash ca-certificates tar sudo \
libusb-1.0-0 libgl1 libx11-6 libxext6 libxcb1 libgtk-3-0 \
libusb-1.0-0-dev udev \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Set environment variables for library paths and Python path
ENV LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/lib
ENV PYTHONPATH=/app:/app/camera_sdk
# The actual app code and SDK will be bind-mounted by docker-compose at runtime
# SDK installation will be handled in the docker-compose command