File size: 858 Bytes
1f736cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Dockerfile: بناء بيئة تحتوي على Node.js و Python و Supervisor
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive


RUN apt-get update \
&& apt-get install -y curl ca-certificates python3 python3-pip supervisor gnupg2 apt-transport-https lsb-release \
&& rm -rf /var/lib/apt/lists/*


# تثبيت Node.js 20 (NodeSource)
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get update && apt-get install -y nodejs && rm -rf /var/lib/apt/lists/*


WORKDIR /app


# انسخ جميع الملفات
COPY . /app


# تثبيت متطلبات بايثون
RUN pip3 install --no-cache-dir -r requirements.txt


#Expose default HF Space port (UI) and MCP server port
EXPOSE 7860 8080


# استخدم Supervisord لتشغيل عمليتين: MCP server و UI
CMD ["/usr/bin/supervisord", "-n", "-c", "/app/supervisord.conf"]