# Start with the official Python 3.10 base image FROM python:3.10 # Install system dependencies including OpenSSL 1.1 RUN apt-get update && apt-get install -y \ libssl1.1 \ libssl-dev \ git \ git-lfs \ ffmpeg \ libsm6 \ libxext6 \ cmake \ rsync \ libgl1-mesa-glx \ curl \ nodejs \ && rm -rf /var/lib/apt/lists/* \ && git lfs install # Set working directory WORKDIR /home/user/app # Copy the requirements.txt file into the container COPY requirements.txt /tmp/requirements.txt # Install Python dependencies RUN pip install --no-cache-dir -r /tmp/requirements.txt # Expose the port EXPOSE 7860 # Run the app CMD ["python", "app.py"]