docs4you commited on
Commit
8fe993b
·
verified ·
1 Parent(s): 732e29e

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ WORKDIR /app
4
+
5
+ ENV \
6
+ PYTHONPATH="/app"
7
+
8
+ RUN \
9
+ apt-get update && apt-get install -y \
10
+ build-essential \
11
+ curl \
12
+ libcurl4-openssl-dev \
13
+ libssl-dev \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+ RUN pip install flask curl-cffi m3u8 gunicorn
17
+
18
+ COPY --link proxy.so sitecustomize.py ./
19
+
20
+ EXPOSE 7860
21
+
22
+ CMD ["gunicorn", "--workers", "5", "--worker-class", "gthread", "--threads", "4", "--bind", "0.0.0.0:7860", "proxy:app"]