banao-tech commited on
Commit
b6bc7cd
·
verified ·
1 Parent(s): 90a6b69

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:12.1.0-runtime-ubuntu22.04
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+ ENV PYTHONUNBUFFERED=1
5
+
6
+ # System deps
7
+ RUN apt-get update && apt-get install -y \
8
+ python3 \
9
+ python3-pip \
10
+ ffmpeg \
11
+ git \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ WORKDIR /app
15
+
16
+ # Python deps
17
+ COPY backend/requirements.txt backend/requirements.txt
18
+ RUN pip3 install --upgrade pip \
19
+ && pip3 install -r backend/requirements.txt
20
+
21
+ # Copy app
22
+ COPY backend backend
23
+ COPY frontend frontend
24
+
25
+ EXPOSE 7860
26
+
27
+ CMD ["python3", "backend/app.py"]