Hemis / Dockerfile
THED2's picture
Update Dockerfile
696c857 verified
Raw
History Blame Contribute Delete
675 Bytes
FROM python:3.11-slim
ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
# System updates aur required packages bina kisi proxy ke
RUN apt-get update && apt-get install -y \
curl \
git \
build-essential \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
# Main dependencies ko globally install karenge as root
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir hermes-agent python-telegram-bot aiohttp
# Hugging Face non-root user setup
RUN useradd -m -u 1000 user
WORKDIR /home/user/app
USER user
ENV HOME=/home/user
ENV PATH=/home/user/.local/bin:$PATH
COPY --chown=user . .
EXPOSE 7860
CMD ["python", "main.py"]