FROM python:3.10-slim ENV DEBIAN_FRONTEND=noninteractive \ PYTHONUNBUFFERED=1 \ PIP_NO_CACHE_DIR=1 \ GRADIO_ANALYTICS_ENABLED=False WORKDIR /app RUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg \ libgl1 \ libglib2.0-0 \ libsm6 \ libxext6 \ libxrender1 \ build-essential \ && rm -rf /var/lib/apt/lists/* COPY requirements-cpu.txt . RUN python -m pip install --upgrade pip \ && python -m pip install -r requirements-cpu.txt COPY . . RUN printf '%s\n' \ 'server_name: "0.0.0.0"' \ 'server_port: 7860' \ 'server_share: false' \ 'provider: cpu' \ 'force_cpu: true' \ 'max_threads: 2' \ 'memory_limit: 0' \ 'selected_theme: Default' \ 'output_image_format: png' \ 'output_video_format: mp4' \ 'output_video_codec: libx264' \ 'video_quality: 14' \ 'clear_output: false' \ 'live_cam_start_active: false' \ 'output_template: "{file}_{time}"' \ 'use_os_temp_folder: false' \ > config.yaml EXPOSE 7860 CMD ["python", "run.py"]