THED2 commited on
Commit
57db76e
·
verified ·
1 Parent(s): 717d763

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -3,7 +3,7 @@ FROM python:3.11-slim
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV PYTHONUNBUFFERED=1
5
 
6
- # System dependencies aur compilers install karenge as root
7
  RUN apt-get update && apt-get install -y \
8
  curl \
9
  git \
@@ -11,20 +11,21 @@ RUN apt-get update && apt-get install -y \
11
  python3-dev \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # Root level par hermes-agent install karenge bina permission errors ke
15
  RUN pip install --no-cache-dir --upgrade pip && \
16
  pip install --no-cache-dir hermes-agent
17
 
18
- # Hugging Face non-root user setup
 
 
 
19
  RUN useradd -m -u 1000 user
20
  WORKDIR /home/user/app
21
 
22
- # Runtime execution ke liye user par switch kiya
23
  USER user
24
  ENV HOME=/home/user
25
  ENV PATH=/home/user/.local/bin:$PATH
26
 
27
- # Files copy ki aur ownership user ko de di
28
  COPY --chown=user . .
29
 
30
  EXPOSE 7860
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV PYTHONUNBUFFERED=1
5
 
6
+ # System dependencies aur compilers
7
  RUN apt-get update && apt-get install -y \
8
  curl \
9
  git \
 
11
  python3-dev \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ # Base packages upgrade aur main hermes-agent install karenge
15
  RUN pip install --no-cache-dir --upgrade pip && \
16
  pip install --no-cache-dir hermes-agent
17
 
18
+ # Telegram aur asynchronous networking ke liye jo modules chahiye they (Jo main bhool gaya tha)
19
+ RUN pip install --no-cache-dir python-telegram-bot aiohttp
20
+
21
+ # Hugging Face user setup
22
  RUN useradd -m -u 1000 user
23
  WORKDIR /home/user/app
24
 
 
25
  USER user
26
  ENV HOME=/home/user
27
  ENV PATH=/home/user/.local/bin:$PATH
28
 
 
29
  COPY --chown=user . .
30
 
31
  EXPOSE 7860