coder-demo / Dockerfile
AhmadA82's picture
fix conniction
185a2e8 verified
raw
history blame
614 Bytes
FROM python:3.10-slim
# تحسينات الأداء
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
# إنشاء مجلد للبيانات المستمرة
RUN mkdir /data && chmod a+rwx /data
RUN pip install --no-cache-dir -r requirements.txt
# متغيرات البيئة (يتم تمريرها عند تشغيل الحاوية)
ENV HF_TOKEN=""
ENV GOOGLE_DRIVE_FOLDER_ID=""
ENV GITHUB_REPO=""
ENV GITHUB_TOKEN=""
ENV GOOGLE_SERVICE_ACCOUNT_JSON=""
EXPOSE 7860
CMD ["python", "app.py"]