fokan commited on
Commit
1f736cb
·
verified ·
1 Parent(s): c37d76f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +32 -0
Dockerfile ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile: بناء بيئة تحتوي على Node.js و Python و Supervisor
2
+ FROM ubuntu:22.04
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
+
6
+ RUN apt-get update \
7
+ && apt-get install -y curl ca-certificates python3 python3-pip supervisor gnupg2 apt-transport-https lsb-release \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+
11
+ # تثبيت Node.js 20 (NodeSource)
12
+ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
13
+ && apt-get update && apt-get install -y nodejs && rm -rf /var/lib/apt/lists/*
14
+
15
+
16
+ WORKDIR /app
17
+
18
+
19
+ # انسخ جميع الملفات
20
+ COPY . /app
21
+
22
+
23
+ # تثبيت متطلبات بايثون
24
+ RUN pip3 install --no-cache-dir -r requirements.txt
25
+
26
+
27
+ #Expose default HF Space port (UI) and MCP server port
28
+ EXPOSE 7860 8080
29
+
30
+
31
+ # استخدم Supervisord لتشغيل عمليتين: MCP server و UI
32
+ CMD ["/usr/bin/supervisord", "-n", "-c", "/app/supervisord.conf"]