randydev commited on
Commit
234372c
·
verified ·
1 Parent(s): 3c96c58
Files changed (1) hide show
  1. Dockerfile +54 -0
Dockerfile ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+
3
+ RUN apt -qq update && \
4
+ apt -qq install -y --no-install-recommends \
5
+ ffmpeg \
6
+ curl \
7
+ git \
8
+ gnupg2 \
9
+ unzip \
10
+ wget \
11
+ xvfb \
12
+ libxi6 \
13
+ libgconf-2-4 \
14
+ libappindicator3-1 \
15
+ libxrender1 \
16
+ libxtst6 \
17
+ libnss3 \
18
+ libatk1.0-0 \
19
+ libxss1 \
20
+ fonts-liberation \
21
+ libasound2 \
22
+ libgbm-dev \
23
+ libu2f-udev \
24
+ libvulkan1 \
25
+ libgl1-mesa-dri \
26
+ xdg-utils \
27
+ python3-dev \
28
+ python3-pip \
29
+ libavformat-dev \
30
+ libavcodec-dev \
31
+ libavdevice-dev \
32
+ libavfilter-dev \
33
+ libavutil-dev \
34
+ libswscale-dev \
35
+ libswresample-dev \
36
+ neofetch && \
37
+ apt-get clean && \
38
+ rm -rf /var/lib/apt/lists/
39
+
40
+ WORKDIR /app
41
+
42
+ COPY requirements.txt .
43
+ COPY . .
44
+
45
+ RUN mkdir -p /app/.cache/detection && \
46
+ chmod -R 777 /app/.cache
47
+
48
+ RUN chown -R 1000:0 .
49
+ RUN pip3 install --upgrade pip setuptools
50
+ RUN pip3 install -r requirements.txt
51
+
52
+ EXPOSE 7860
53
+
54
+ CMD ["bash", "-c", "python3 server.py & python3 -m Detection"]