Ricky01anjay commited on
Commit
796b462
·
verified ·
1 Parent(s): 5670fd5

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -0
Dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+ ENV PYTHONUNBUFFERED=1
5
+
6
+ RUN apt-get update && apt-get install -y \
7
+ ffmpeg \
8
+ libgl1 \
9
+ libglib2.0-0 \
10
+ build-essential \
11
+ && apt-get clean \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ WORKDIR /app
15
+
16
+ RUN pip install --no-cache-dir --upgrade pip
17
+
18
+ RUN pip install --no-cache-dir \
19
+ opencv-python-headless \
20
+ numpy \
21
+ fastapi \
22
+ uvicorn \
23
+ python-multipart \
24
+ requests \
25
+ vidstab
26
+
27
+ COPY . .
28
+
29
+ RUN mkdir -p uploads processed && chmod -R 777 uploads processed
30
+
31
+ EXPOSE 7860
32
+
33
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]