Update Dockerfile
Browse files2 unmodified lines34567891 unmodified line11121314151617181920212223242526272829302 unmodified linesENV DEBIAN_FRONTEND=noninteractiveENV PYTHONUNBUFFERED=1# System dependencies aur compilers install karenge as rootRUN apt-get update && apt-get install -y \curl \git \1 unmodified linepython3-dev \&& rm -rf /var/lib/apt/lists/*# Root level par hermes-agent install karenge bina permission errors keRUN pip install --no-cache-dir --upgrade pip && \pip install --no-cache-dir hermes-agent# Hugging Face non-root user setupRUN useradd -m -u 1000 userWORKDIR /home/user/app# Runtime execution ke liye user par switch kiyaUSER userENV HOME=/home/userENV PATH=/home/user/.local/bin:$PATH# Files copy ki aur ownership user ko de diCOPY --chown=user . .EXPOSE 78602 unmodified lines34567891 unmodified line1112131415161718192021222324252627282930312 unmodified linesENV DEBIAN_FRONTEND=noninteractiveENV PYTHONUNBUFFERED=1# System dependencies aur compilersRUN apt-get update && apt-get install -y \curl \git \1 unmodified linepython3-dev \&& rm -rf /var/lib/apt/lists/*# Base packages upgrade aur main hermes-agent install karengeRUN pip install --no-cache-dir --upgrade pip && \pip install --no-cache-dir hermes-agent# Telegram aur asynchronous networking ke liye jo modules chahiye they (Jo main bhool gaya tha)RUN pip install --no-cache-dir python-telegram-bot aiohttp# Hugging Face user setupRUN useradd -m -u 1000 userWORKDIR /home/user/appUSER userENV HOME=/home/userENV PATH=/home/user/.local/bin:$PATHCOPY --chown=user . .EXPOSE 7860
Dockerfile+6-5