File size: 541 Bytes
7e3c986
cc36729
7e3c986
 
 
 
 
 
 
cc36729
 
7e3c986
 
a6299ef
 
6a7cb13
cc36729
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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