Spaces:
Paused
Paused
# 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"] |