80f21915e3
- Base: nvidia/cuda:12.6.3-runtime-ubuntu24.04 - ffmpeg from apt has NVENC support when GPU runtime is available - docker-compose reserves all GPUs via deploy.resources Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
403 B
Docker
14 lines
403 B
Docker
FROM nvidia/cuda:12.6.3-runtime-ubuntu24.04
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
python3 python3-pip ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY core/ core/
|
|
COPY server/ server/
|
|
RUN pip install --no-cache-dir --break-system-packages fastapi uvicorn[standard]
|
|
|
|
EXPOSE 8000
|
|
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]
|