FROM python:3.9 # Add Intel RealSense repository RUN apt-get update && apt-get install -y \ software-properties-common \ gnupg \ && apt-key adv --keyserver keyserver.ubuntu.com --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE \ && add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo $(lsb_release -cs) main" \ && apt-get update # Install system dependencies RUN apt-get install -y \ libgl1-mesa-glx \ libglib2.0-0 \ librealsense2-dkms \ librealsense2-utils \ librealsense2-dev \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # Copy requirements and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY . . # Set environment variables ENV FLASK_APP=app.py ENV FLASK_ENV=production # Expose port EXPOSE 7860 # Run the application CMD ["python", "app.py"]