Opera8 commited on
Commit
c64102b
·
verified ·
1 Parent(s): 1e2ce50

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,7 +1,10 @@
1
  FROM python:3.10-slim
2
 
3
- # نصب Nginx (پلیس ترافیک) و ابزارهای لازم
4
- RUN apt-get update && apt-get install -y wget unzip nginx
 
 
 
5
 
6
  # دانلود Xray
7
  RUN wget https://github.com/XTLS/Xray-core/releases/download/v1.8.4/Xray-linux-64.zip && \
@@ -11,7 +14,6 @@ RUN wget https://github.com/XTLS/Xray-core/releases/download/v1.8.4/Xray-linux-6
11
 
12
  COPY app.py .
13
 
14
- # پورت اصلی هاگینگ فیس
15
  EXPOSE 7860
16
 
17
  CMD ["python", "app.py"]
 
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 && \
 
14
 
15
  COPY app.py .
16
 
 
17
  EXPOSE 7860
18
 
19
  CMD ["python", "app.py"]