Ezmary commited on
Commit
5e7c330
·
verified ·
1 Parent(s): c982716

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # نصب Nginx و ابزارها
4
+ RUN apt-get update && \
5
+ apt-get install -y wget unzip nginx && \
6
+ mkdir -p /var/log/nginx && \
7
+ mkdir -p /var/lib/nginx/body
8
+
9
+ # دانلود Xray
10
+ RUN wget https://github.com/XTLS/Xray-core/releases/download/v1.8.4/Xray-linux-64.zip && \
11
+ unzip Xray-linux-64.zip && \
12
+ chmod +x xray && \
13
+ rm Xray-linux-64.zip
14
+
15
+ COPY app.py .
16
+
17
+ EXPOSE 7860
18
+
19
+ CMD ["python", "app.py"]