rcastriotta commited on
Commit
e748991
·
verified ·
1 Parent(s): e19c3ef

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ ffmpeg \
5
+ tk \
6
+ python3-tk \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ RUN python3 -m pip install --upgrade pip
10
+
11
+ RUN pip install onnxruntime-gpu
12
+
13
+ RUN --mount=type=cache,target=/root/.cache \
14
+ pip3 install "audio-separator" fastapi uvicorn python-multipart ffmpeg-python pydantic youtube-transcript-api
15
+
16
+ COPY . .
17
+
18
+ EXPOSE 8000
19
+
20
+ ENV TMP_DIRECTORY=tmp
21
+
22
+ RUN mkdir -p ${TMP_DIRECTORY}
23
+
24
+
25
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]