Dockerfile 464 B

1234567891011121314151617181920212223
  1. FROM nvidia/cuda:12.1.0-base-ubuntu22.04
  2. ENV DEBIAN_FRONTEND=noninteractive
  3. RUN apt-get update && apt-get install -y \
  4. python3.10 \
  5. python3-pip \
  6. ffmpeg \
  7. curl \
  8. fonts-wqy-microhei \
  9. && rm -rf /var/lib/apt/lists/*
  10. WORKDIR /app
  11. COPY ./requirements.txt /app/requirements.txt
  12. RUN pip3 install --no-cache-dir --upgrade -r /app/requirements.txt
  13. COPY . /app
  14. EXPOSE 7070
  15. CMD ["sh", "-c", "uvicorn ai_server:app --host 0.0.0.0 --port 7070"]