Teleautoadminbot / Dockerfile
Alialdlfy1's picture
Update Dockerfile
f2d1abf verified
Raw History Blame Contribute Delete
378 Bytes
FROM python:3.11-slim
WORKDIR /code
# إنشاء مجلد البيانات الدائمة
RUN mkdir -p /data
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# ضمان توافق الأسطر وإعطاء صلاحية التشغيل لملف start.sh
RUN sed -i 's/\r$//' /code/start.sh && chmod +x /code/start.sh
CMD ["/code/start.sh"]