FROM python:3.10 # Install Java (default-jre-headless is a safe option) + other deps RUN apt-get update && apt-get install -y \ default-jre-headless \ git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx \ curl fakeroot && \ rm -rf /var/lib/apt/lists/* # Setup Node.js (if needed) RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ apt-get install -y nodejs # Python dependencies COPY requirements.txt /tmp/requirements.txt RUN pip install --no-cache-dir -r /tmp/requirements.txt # Set workdir WORKDIR /home/user/app COPY . . # App entrypoint CMD ["python", "app.py"]