AI-API / Dockerfile
Anicet
update: minors corrections
cc36729
Raw
History Blame Contribute Delete
541 Bytes
FROM python:3.10-slim
# FROM nvidia/cuda:12.1.1-runtime-ubuntu22.04
WORKDIR /app
RUN apt-get update && apt-get install -y git ffmpeg
COPY . .
# RUN pip install --upgrade pip setuptools wheel
RUN pip install --no-cache-dir -r requirements.txt
# EXPOSE 8000
# CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
# docker buildx build --platform linux/amd64 --no-cache -t ai-api .
# docker tag ai-api kora3/ai-api:latest
# docker push kora3/ai-api:latest