|
|
@@ -0,0 +1,23 @@
|
|
|
+FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04
|
|
|
+
|
|
|
+ENV DEBIAN_FRONTEND=noninteractive
|
|
|
+
|
|
|
+RUN apt update && apt install -y \
|
|
|
+ python3 \
|
|
|
+ python3-pip \
|
|
|
+ ffmpeg \
|
|
|
+ git \
|
|
|
+ && rm -rf /var/lib/apt/lists/*
|
|
|
+
|
|
|
+RUN pip install --upgrade pip
|
|
|
+
|
|
|
+COPY requirements.txt /requirements.txt
|
|
|
+RUN pip install -r /requirements.txt
|
|
|
+
|
|
|
+COPY app.py /app.py
|
|
|
+
|
|
|
+RUN chmod -R a+rX /app.py /usr/local /usr/lib /usr/bin
|
|
|
+
|
|
|
+EXPOSE 8000
|
|
|
+
|
|
|
+CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|