File size: 470 Bytes
5cdd123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cf7c8fb
5cdd123
 
 
cf7c8fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.9

RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"

# Set working directory
WORKDIR /app


RUN python -m pip install --upgrade pip

# Copy requirements and install dependencies

COPY --chown=user ./requirements2.txt requirements2.txt
RUN pip install --no-cache-dir -r requirements2.txt


COPY app.py .
# Expose any ports if needed (Telegram bot uses polling, no ports needed)

COPY --chown=user . /app
CMD ["python", "app.py"]