xyz69 commited on
Commit
20a8799
·
verified ·
1 Parent(s): 66a788b

Create Dockerfile

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